From 4a7be6535501a4d709c10d3e981cfe19706b9d2b Mon Sep 17 00:00:00 2001 From: Lauren-D Date: Tue, 27 Jun 2023 09:50:05 +0200 Subject: [PATCH] alembic: fix log output format * Uses formatted string litterals on splitted string Co-Authored-by: Lauren-D --- .../alembic/add75cbcad66_migrate_obsolete_country_codes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rero_ils/alembic/add75cbcad66_migrate_obsolete_country_codes.py b/rero_ils/alembic/add75cbcad66_migrate_obsolete_country_codes.py index 5250886e7e..99fdad7a4f 100644 --- a/rero_ils/alembic/add75cbcad66_migrate_obsolete_country_codes.py +++ b/rero_ils/alembic/add75cbcad66_migrate_obsolete_country_codes.py @@ -52,7 +52,7 @@ def fix_documents(pids, old_country, new_country): place['country'] = new_country LOGGER.info( f'Doc {pid}: replacing {old_country} by' - ' {new_country}') + f' {new_country}') doc.replace(doc, commit=True, dbcommit=True, reindex=True) def fix_patrons(pids, old_country, new_country): @@ -63,7 +63,7 @@ def fix_patrons(pids, old_country, new_country): address['country'] = new_country LOGGER.info( f'Patron {pid}: replacing {old_country} by' - ' {new_country}') + f' {new_country}') ptrn.replace(ptrn, commit=True, dbcommit=True, reindex=True) def fix_users(query, old_country, new_country): @@ -72,7 +72,7 @@ def fix_users(query, old_country, new_country): db.session.merge(profile) LOGGER.info( f'User {profile.last_name}, {profile.first_name}' - ': replacing {old_country} by {new_country}') + f': replacing {old_country} by {new_country}') db.session.commit() for old_country, new_country in _OBSOLETE_COUNTRIES_MAPPING.items():