mirror of
https://github.com/lutris/lutris
synced 2024-10-14 03:32:52 +00:00
flake8 fixes
This commit is contained in:
parent
a6040c5910
commit
a667db417f
|
@ -1,8 +1,5 @@
|
|||
from lutris.pga import PGA_DB, get_games
|
||||
from lutris.pga import get_games
|
||||
from lutris.game import Game
|
||||
from lutris.util import sql
|
||||
from lutris.util.log import logger
|
||||
|
||||
|
||||
|
||||
def migrate():
|
||||
|
@ -22,4 +19,3 @@ def migrate():
|
|||
game.config.runner_config["dxvk"] = True
|
||||
game.config.save()
|
||||
print("Migrated %s" % game)
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ def fix_playtime(game):
|
|||
game["name"])
|
||||
sql.db_update(PGA_DB, "games", {"playtime": playtime}, ("id", game["id"]))
|
||||
|
||||
|
||||
def migrate():
|
||||
for game in get_games():
|
||||
if not game["playtime"]:
|
||||
|
|
|
@ -120,7 +120,7 @@ class DXVKManager:
|
|||
with open(dll_path, 'rb') as file:
|
||||
prev_block_end = b''
|
||||
while True:
|
||||
block = file.read(2*1024*1024) # 2 MiB
|
||||
block = file.read(2 * 1024 * 1024) # 2 MiB
|
||||
if not block:
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue