initial upload
This commit is contained in:
20
app/dependencies.py
Normal file
20
app/dependencies.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import json
|
||||
|
||||
# Helper functions
|
||||
def load_animeguess_anime_list():
|
||||
"""
|
||||
Load in the parsed anime list
|
||||
"""
|
||||
global animeguess_anime_list
|
||||
f = open('app/parsed-anime-list-mini.json')
|
||||
animeguess_anime_list = json.load(f)
|
||||
|
||||
def return_animeguess_anime_list():
|
||||
"""
|
||||
Return the parsed anime list
|
||||
|
||||
Returns:
|
||||
JSON:
|
||||
parsed anime list
|
||||
"""
|
||||
return animeguess_anime_list
|
Reference in New Issue
Block a user