From 2491981f4dd3c9e6462bab8b3c6164b3640c8e5d Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Tue, 9 Jul 2019 15:32:37 +0200 Subject: [PATCH] Disabled Debug --- server.py | 11 ++++++++++- templates/dashboard.html | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 templates/dashboard.html diff --git a/server.py b/server.py index 223c39f..ff25a23 100644 --- a/server.py +++ b/server.py @@ -196,7 +196,16 @@ def function_updateAccountsAtFunk(): @app.route("/") @requires_auth def hello(): - return render_template("base.html") + resData = function_getAccounts() + plans = {} + plans["1 GB"] = 0; + plans["Unlimit"] = 0; + plans["Unlimit - First Day"] = 0; + plans["Break"] = 0 + for account in resData: + plans[account["currentPlan"]["name"]] = plans[account["currentPlan"]["name"]] + 1; + + return render_template("dashboard.html", debug=app.debug, plans=plans) @app.route('/setup', methods=['GET']) @requires_auth diff --git a/templates/dashboard.html b/templates/dashboard.html new file mode 100644 index 0000000..88919c3 --- /dev/null +++ b/templates/dashboard.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% block content %} + +

Dashboard

+
+
+

Funk Manager

+

Manage unlimit Frenet Funk Sim-Cards.

+
+
+

Sim Cards

+ +
+
+ +{% endblock %} \ No newline at end of file