added variable for file name. Also updated requirements to latest versions.

This commit is contained in:
2020-05-23 00:23:00 -04:00
parent c9e9a1c321
commit 7acc7871f3
2 changed files with 10 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ import subprocess
from waitress import serve
PATH = '/download'
FILE = '/tach.json'
app = Flask(__name__,
template_folder="templates")
@@ -79,8 +80,7 @@ def upload_jason():
z = 0
added = []
with open(PATH+"/tach.json", "r") as tf:
# with open("tach.json", "r") as tf:
with open(PATH + FILE, "r") as tf:
data = json.load(tf)
for x in data["mangas"]:
# Manga Name
@@ -178,8 +178,7 @@ def ood():
y = 0
z = 0
with open(PATH + "/tach.json", "r") as tf:
# with open("tach.json", "r") as tf:
with open(PATH + FILE, "r") as tf:
data = json.load(tf)
for x in data["mangas"]:
# Manga Name
@@ -217,7 +216,7 @@ def test():
mangaInfo=[]
mangaName = manga.query.all()
with open(PATH + "/tach.json", "r") as tf:
with open(PATH + FILE, "r") as tf:
data = json.load(tf)
for x in data["mangas"]:
watchedManga = {}

View File

@@ -1,23 +1,23 @@
aiocontextvars==0.2.2
certifi==2020.4.5.1
chardet==3.0.4
click==7.1.1
click==7.1.2
colorama==0.4.3
contextvars==2.4
cssselect==1.1.0
Flask==1.1.2
Flask-SQLAlchemy==2.4.1
idna==2.9
immutables==0.11
immutables==0.14
itsdangerous==1.1.0
Jinja2==2.11.2
loguru==0.4.1
lxml==4.5.0
loguru==0.5.0
lxml==4.5.1
MarkupSafe==1.1.1
Pillow==7.1.1
Pillow==7.1.2
PyMySQL==0.9.3
requests==2.23.0
SQLAlchemy==1.3.16
SQLAlchemy==1.3.17
style==1.1.6
update==0.0.1
urllib3==1.25.9