This commit is contained in:
Aevann1 2022-01-22 21:21:16 +02:00
parent 6482c5ba06
commit dbdcefcfd9
7 changed files with 14 additions and 14 deletions

View file

@ -31,7 +31,7 @@ def leaderboard_thread():
if SITE_NAME == 'Drama':
users13 = {}
with open("marseys.json", 'r') as f: authors = (x for x in loads(f.read()).values())
with open("marseys.json", 'r') as f: authors = (x for x in loads(f.read().replace("'",'"')).values())
for x in authors:
if x["author"] in users13: users13[x["author"]] += 1
else: users13[x["author"]] = 1