ui: show some more important information and checks

This commit is contained in:
Dobin
2024-05-01 22:30:53 +01:00
parent 3e6c1e06cf
commit c372d348ce
6 changed files with 52 additions and 10 deletions
+8 -2
View File
@@ -19,8 +19,14 @@ def index():
@views.route("/exes/<exe_name>")
def exe_view(exe_name):
path = "{}/{}".format(PATH_EXES, exe_name)
superpe = SuperPe(path)
# TODO
filepath = "{}{}".format(PATH_EXES, exe_name)
if not os.path.exists(filepath):
filepath = "{}{}".format(PATH_EXES_MORE, exe_name)
if not os.path.exists(filepath):
return "File not found: {}".format(exe_name)
superpe = SuperPe(filepath)
return render_template('exe.html',
superpe=superpe,