Spaces:
Paused
Paused
Commit
·
b7e3063
1
Parent(s):
ff78474
0.2.4 V Alpha
Browse files- Instance.py +1 -1
- app.py +4 -0
Instance.py
CHANGED
@@ -17,7 +17,7 @@ download_progress = {}
|
|
17 |
|
18 |
class Instance:
|
19 |
def __init__(self, id, url, cache_dir, index_file, token, repo, load_balancer_api,max_retries=20, initial_delay=1):
|
20 |
-
self.version = "0.2.
|
21 |
self.id = id
|
22 |
self.url = url
|
23 |
self.CACHE_DIR = cache_dir
|
|
|
17 |
|
18 |
class Instance:
|
19 |
def __init__(self, id, url, cache_dir, index_file, token, repo, load_balancer_api,max_retries=20, initial_delay=1):
|
20 |
+
self.version = "0.2.4 V Alpha"
|
21 |
self.id = id
|
22 |
self.url = url
|
23 |
self.CACHE_DIR = cache_dir
|
app.py
CHANGED
@@ -212,6 +212,10 @@ def get_all_films_api():
|
|
212 |
def get_all_tvshows_api():
|
213 |
return instance.get_all_tv_shows()
|
214 |
|
|
|
|
|
|
|
|
|
215 |
|
216 |
# Routes
|
217 |
@app.route('/')
|
|
|
212 |
def get_all_tvshows_api():
|
213 |
return instance.get_all_tv_shows()
|
214 |
|
215 |
+
@app.route("/api/get/report",methods=["GET"])
|
216 |
+
def get_report():
|
217 |
+
report=instance.compile_report()
|
218 |
+
return jsonify(report)
|
219 |
|
220 |
# Routes
|
221 |
@app.route('/')
|