From 7a7f2371879b91de905beb007fde88ccc9c8cd42 Mon Sep 17 00:00:00 2001 From: Silversthorn Date: Sat, 23 Mar 2024 14:30:48 +0100 Subject: [PATCH] appease lint --- .../20240217_rework_servers_uuid_part2.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/migrations/20240217_rework_servers_uuid_part2.py b/app/migrations/20240217_rework_servers_uuid_part2.py index c55334e7..eab04c28 100644 --- a/app/migrations/20240217_rework_servers_uuid_part2.py +++ b/app/migrations/20240217_rework_servers_uuid_part2.py @@ -61,9 +61,13 @@ def migrate(migrator: Migrator, database, **kwargs): Console.debug("Update database already done, skipping this part") return else: - servers_columns = db.get_columns('servers') - if not any(column_data.name == "server_uuid" for column_data in servers_columns): - Console.debug("Servers.server_uuid already deleted in Crafty version 4.3.0, skipping this part") + servers_columns = db.get_columns("servers") + if not any( + column_data.name == "server_uuid" for column_data in servers_columns + ): + Console.debug( + "Servers.server_uuid already deleted in Crafty version 4.3.0, skipping this part" + ) return try: @@ -250,9 +254,7 @@ def rollback(migrator: Migrator, database, **kwargs): new_server_id = 0 else: try: - server = Servers.get_or_none( - Servers.server_uuid == old_server_id - ) + server = Servers.get_or_none(Servers.server_uuid == old_server_id) new_server_id = server.server_id except: new_server_id = old_server_id