mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 14:22:55 +01:00
remove walrus operator because python3.7
This commit is contained in:
parent
c965bca41d
commit
b8de30423f
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ def migrate_databases():
|
|||
def run_migration(db, migrations_module):
|
||||
db_name = migrations_module.__name__.split(".")[-2]
|
||||
for key, run_migration in migrations_module.__dict__.items():
|
||||
if match := matcher.match(key):
|
||||
match = match = matcher.match(key)
|
||||
if match:
|
||||
version = int(match.group(1))
|
||||
if version > current_versions.get(db_name, 0):
|
||||
print(f"running migration {db_name}.{version}")
|
||||
|
|
Loading…
Add table
Reference in a new issue