Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhong84 committed Aug 23, 2024
1 parent b9107e8 commit d4fbc40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion querybook/server/lib/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ def get_default_args(func):
}


def str_to_bool(value: str | bool):
def str_to_bool(value: Union[str, bool]):
return value.lower() in (True, "yes", "true", "t", "1")
10 changes: 7 additions & 3 deletions querybook/server/tasks/disable_scheduled_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
from lib.utils.utils import str_to_bool
from logic.datadoc import get_data_doc_by_id
from logic.impression import get_viewers_count_by_item_after_date
from logic.schedule import (DATADOC_SCHEDULE_PREFIX, delete_task_schedule,
get_task_run_records, update_task_schedule,
with_task_logging)
from logic.schedule import (
DATADOC_SCHEDULE_PREFIX,
delete_task_schedule,
get_task_run_records,
update_task_schedule,
with_task_logging,
)
from logic.user import get_user_by_id
from models.schedule import TaskSchedule

Expand Down

0 comments on commit d4fbc40

Please sign in to comment.