[WEB-5044] fix: ruff lint and format errors (#7868)
* fix: lint errors * fix: file formatting * fix: code refactor
This commit is contained in:
parent
1fb22bd252
commit
9237f568dd
261 changed files with 2199 additions and 6378 deletions
|
|
@ -70,9 +70,7 @@ def sync_issue_description_version(batch_size=5000, offset=0, countdown=300):
|
|||
for issue in issues_batch:
|
||||
# Validate required fields
|
||||
if not issue.workspace_id or not issue.project_id:
|
||||
logging.warning(
|
||||
f"Skipping {issue.id} - missing workspace_id or project_id"
|
||||
)
|
||||
logging.warning(f"Skipping {issue.id} - missing workspace_id or project_id")
|
||||
continue
|
||||
|
||||
# Determine owned_by_id
|
||||
|
|
@ -120,6 +118,4 @@ def sync_issue_description_version(batch_size=5000, offset=0, countdown=300):
|
|||
|
||||
@shared_task
|
||||
def schedule_issue_description_version(batch_size=5000, countdown=300):
|
||||
sync_issue_description_version.delay(
|
||||
batch_size=int(batch_size), countdown=countdown
|
||||
)
|
||||
sync_issue_description_version.delay(batch_size=int(batch_size), countdown=countdown)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue