Skip to content

Commit

Permalink
lint(config, db): flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
knopki committed Feb 3, 2025
1 parent 02d1a4b commit 0a6b2df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions yascheduler/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ def warn_unknown_fields(known_fields: Sequence[str], sec: SectionProxy) -> None:
warnings.warn(
f"Config section {sec.name} unknown fields: {', '.join(unknown_fields)}",
ConfigWarning,
3,
)
4 changes: 3 additions & 1 deletion yascheduler/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ async def get_task_ids_by_ip_and_status(
) -> Sequence[int]:
"""Get task ids by ip and status"""
rows = await self.run(
"SELECT task_id FROM yascheduler_tasks WHERE ip=:ip AND status=:status ORDER BY task_id;",
"""SELECT task_id FROM yascheduler_tasks
WHERE ip=:ip AND status=:status
ORDER BY task_id;""",
ip=ip_addr,
status=status.value,
)
Expand Down

0 comments on commit 0a6b2df

Please sign in to comment.