mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Merge pull request #488 from mcarlton00/pls-mr-linter
Fix formatting on multiline if statement
This commit is contained in:
commit
b3e88bbeb2
1 changed files with 4 additions and 3 deletions
|
@ -116,9 +116,10 @@ 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('-shm')
|
and not db_file.endswith('-wal')
|
||||||
and not db_file.endswith('db-journal')):
|
and not db_file.endswith('-shm')
|
||||||
|
and not db_file.endswith('db-journal')):
|
||||||
|
|
||||||
version_string = re.search('{}(.*).db'.format(database), db_file)
|
version_string = re.search('{}(.*).db'.format(database), db_file)
|
||||||
version = int(version_string.group(1))
|
version = int(version_string.group(1))
|
||||||
|
|
Loading…
Reference in a new issue