[imports] Clean up logs and fix missing tz for birding
This commit is contained in:
@ -328,12 +328,13 @@ def scan_webdav_for_bgstats(webdav_client, user_id):
|
||||
with open(tmp.name, "r", encoding="utf-8") as f:
|
||||
parsed_json = json.load(f)
|
||||
scrobbles = email_scrobble_board_game(parsed_json, user_id)
|
||||
logger.info(
|
||||
"BG Stats import from %s for user %d created %d scrobble(s)",
|
||||
fname,
|
||||
user_id,
|
||||
len(scrobbles),
|
||||
)
|
||||
if scrobbles:
|
||||
logger.info(
|
||||
"BG Stats import from %s for user %d created %d scrobble(s)",
|
||||
fname,
|
||||
user_id,
|
||||
len(scrobbles),
|
||||
)
|
||||
processed += 1
|
||||
except Exception as e:
|
||||
logger.error(
|
||||
@ -342,4 +343,4 @@ def scan_webdav_for_bgstats(webdav_client, user_id):
|
||||
finally:
|
||||
os.unlink(tmp.name)
|
||||
|
||||
return processed
|
||||
return processed
|
||||
|
||||
Reference in New Issue
Block a user