Split if statement evenly

This commit is contained in:
Matt 2021-03-14 19:09:10 -04:00
parent f12b58406b
commit d3d4996d0d
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ class Database(object):
target = {'db_file': '', 'version': 0} target = {'db_file': '', 'version': 0}
for db_file in reversed(files): for db_file in reversed(files):
if (db_file.startswith(database) and not db_file.endswith('-wal') if (db_file.startswith(database)
and not db_file.endswith('-wal')
and not db_file.endswith('-shm') and not db_file.endswith('-shm')
and not db_file.endswith('db-journal')): and not db_file.endswith('db-journal')):