mirror of
https://github.com/FAUSheppy/tmnf-replay-server.git
synced 2025-12-06 07:01:37 +01:00
whitespaces: trailing spaces
This commit is contained in:
@@ -164,7 +164,7 @@ def update_user_settings():
|
|||||||
|
|
||||||
if key is None or value is None:
|
if key is None or value is None:
|
||||||
return ("element in payload list does not contain key and value", 422)
|
return ("element in payload list does not contain key and value", 422)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
getattr(settings, key)
|
getattr(settings, key)
|
||||||
setattr(settings, key, bool(value))
|
setattr(settings, key, bool(value))
|
||||||
@@ -285,7 +285,7 @@ class DataTable():
|
|||||||
if map_uid:
|
if map_uid:
|
||||||
print("Filter for map: {}".format(map_uid))
|
print("Filter for map: {}".format(map_uid))
|
||||||
query = query.filter(ParsedReplay.map_uid == map_uid)
|
query = query.filter(ParsedReplay.map_uid == map_uid)
|
||||||
|
|
||||||
total = query.count()
|
total = query.count()
|
||||||
if self.searchValue:
|
if self.searchValue:
|
||||||
|
|
||||||
@@ -337,7 +337,7 @@ class DataTable():
|
|||||||
|
|
||||||
def _extracted_login_from_file(fullpath):
|
def _extracted_login_from_file(fullpath):
|
||||||
'''Extract a login from a tmnf 2020 replay manually'''
|
'''Extract a login from a tmnf 2020 replay manually'''
|
||||||
|
|
||||||
# TODO fix underscores in filenames #
|
# TODO fix underscores in filenames #
|
||||||
if "its_a_sheppy" in fullpath:
|
if "its_a_sheppy" in fullpath:
|
||||||
login_from_filename = "its_a_sheppy"
|
login_from_filename = "its_a_sheppy"
|
||||||
@@ -369,7 +369,7 @@ def replay_from_path(fullpath, uploader=None):
|
|||||||
upload_dt=ghost.upload_dt,
|
upload_dt=ghost.upload_dt,
|
||||||
cp_times=ghost.cp_times,
|
cp_times=ghost.cp_times,
|
||||||
game=ghost.game)
|
game=ghost.game)
|
||||||
|
|
||||||
# build database map object from replay #
|
# build database map object from replay #
|
||||||
m = Map(map_uid=replay.map_uid, mapname=replay.map_uid, game=replay.game)
|
m = Map(map_uid=replay.map_uid, mapname=replay.map_uid, game=replay.game)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user