Split if statement evenly
This commit is contained in:
parent
f12b58406b
commit
d3d4996d0d
|
@ -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')):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue