flake8 fixes

This commit is contained in:
Connectety-T 2020-04-04 14:12:07 +02:00 committed by Mathieu Comandon
parent a6040c5910
commit a667db417f
3 changed files with 3 additions and 6 deletions

View file

@ -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)

View file

@ -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"]:

View file

@ -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