mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-05-15 22:37:32 -04:00
chore(deps): update dependency ruff to ^0.9.0 (#4871)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
@@ -26,8 +26,7 @@ def fix_group_with_no_name(session: Session):
|
||||
return
|
||||
|
||||
logger.info(
|
||||
f'{len(groups)} {"group" if len(groups) == 1 else "groups"} found with a missing name; '
|
||||
f"applying default name"
|
||||
f"{len(groups)} {'group' if len(groups) == 1 else 'groups'} found with a missing name; applying default name"
|
||||
)
|
||||
|
||||
offset = 0
|
||||
|
||||
@@ -51,7 +51,7 @@ def fix_dangling_refs(session: Session):
|
||||
|
||||
if result.rowcount:
|
||||
logger.info(
|
||||
f'Reassigned {result.rowcount} {"row" if result.rowcount == 1 else "rows"} '
|
||||
f"Reassigned {result.rowcount} {'row' if result.rowcount == 1 else 'rows'} "
|
||||
f'in "{table_name}" table to default user ({default_user.id})'
|
||||
)
|
||||
|
||||
@@ -63,7 +63,7 @@ def fix_dangling_refs(session: Session):
|
||||
|
||||
if result.rowcount:
|
||||
logger.info(
|
||||
f'Deleted {result.rowcount} {"row" if result.rowcount == 1 else "rows"} '
|
||||
f"Deleted {result.rowcount} {'row' if result.rowcount == 1 else 'rows'} "
|
||||
f'in "{table_name}" table with invalid user ids'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user