This commit is contained in:
2022-04-16 02:44:18 +03:00
parent c5c978ed52
commit 8d815ad273
+1 -1
View File
@@ -45,7 +45,7 @@ class Meme:
@staticmethod
def info_from_json(path: str) -> str:
with open(path, 'w', encoding='utf8') as f:
with open(path, 'r', encoding='utf8') as f:
data = json.loads(f.read())
return f"{'Fandom: ' if data.get('fandom') else 'Project: '} {data.get('fandom', data.get('Project'))}\n"\