From aaaa9d874acf285fc6a7699976464f640d2be13e Mon Sep 17 00:00:00 2001 From: John Davis Date: Tue, 11 Jun 2024 20:22:17 -0400 Subject: [PATCH] Fix mypy error --- .../c63848676caf_update_username_column_schema_and_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/model/migrations/alembic/versions_gxy/c63848676caf_update_username_column_schema_and_data.py b/lib/galaxy/model/migrations/alembic/versions_gxy/c63848676caf_update_username_column_schema_and_data.py index 30c2c4a48520..c29aeb243724 100644 --- a/lib/galaxy/model/migrations/alembic/versions_gxy/c63848676caf_update_username_column_schema_and_data.py +++ b/lib/galaxy/model/migrations/alembic/versions_gxy/c63848676caf_update_username_column_schema_and_data.py @@ -49,5 +49,5 @@ def _generate_missing_usernames(): users = connection.execute(stmt).all() for id, email in users: new_username = username_from_email_with_connection(connection, email) - stmt = update(User).where(User.id == id).values(username=new_username) - connection.execute(stmt) + update_stmt = update(User).where(User.id == id).values(username=new_username) + connection.execute(update_stmt)