added variable for file name. Also updated requirements to latest versions.
This commit is contained in:
9
main.py
9
main.py
@@ -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 = {}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user