Split if statement evenly

This commit is contained in:
Matt 2021-03-14 19:09:10 -04:00
parent f12b58406b
commit d3d4996d0d

View file

@ -116,7 +116,8 @@ class Database(object):
target = {'db_file': '', 'version': 0}
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('db-journal')):