8000 alembic: fix log output format by lauren-d · Pull Request #3387 · rero/rero-ils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alembic: fix log output format #3387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand All @@ -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():
Expand Down
0