fuck.
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ class Meme:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def info_from_json(path: str) -> str:
|
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())
|
data = json.loads(f.read())
|
||||||
|
|
||||||
return f"{'Fandom: ' if data.get('fandom') else 'Project: '} {data.get('fandom', data.get('Project'))}\n"\
|
return f"{'Fandom: ' if data.get('fandom') else 'Project: '} {data.get('fandom', data.get('Project'))}\n"\
|
||||||
|
|||||||
Reference in New Issue
Block a user