From e0b4e2b2d7bfd1f43887d4c60ae7df99a702f71b Mon Sep 17 00:00:00 2001 From: ske087 Date: Thu, 10 Apr 2025 15:13:02 +0300 Subject: [PATCH] cleaning the app --- __pycache__/app.cpython-311.pyc | Bin 30348 -> 30371 bytes __pycache__/extensions.cpython-311.pyc | Bin 456 -> 456 bytes __pycache__/models.cpython-311.pyc | Bin 4190 -> 4190 bytes app.py | 9 +-- instance/dashboard.db | Bin 45056 -> 45056 bytes requirements.txt | 1 - templates/dashboard.html | 13 +--- templates/integrate_player.html | 100 ------------------------- 8 files changed, 2 insertions(+), 121 deletions(-) delete mode 100644 templates/integrate_player.html diff --git a/__pycache__/app.cpython-311.pyc b/__pycache__/app.cpython-311.pyc index bd80c2aa65309fd5606c721696662d6906fbb663..98f75ca3449ce82c4ad6ee0650f09b75e00aed7f 100644 GIT binary patch delta 56 zcmeBq%eeS0BlmJ%UM>b8aH#pdk$VZBjFNsver~FML8iV-YH@Z+et~{UW_o6EYEfBg K(dI3DH_`zTtQ0{2 delta 33 ocmZ4dma*q8BlmJ%UM>b8n7`!FM(!nitlavE1qGW=^W8`X0KeG_zyJUM diff --git a/__pycache__/extensions.cpython-311.pyc b/__pycache__/extensions.cpython-311.pyc index 366fb2fdc2fc76fe39462eae202d0ba8323aa61b..05e2225841836c8406cc894a701380e78686bda9 100644 GIT binary patch delta 20 acmX@Xe1e&KIWI340}wdWeBa2umk|IsTLqc` delta 20 acmX@Xe1e&KIWI340}!umAu;F$Np} diff --git a/app.py b/app.py index 4b96350..76fda66 100644 --- a/app.py +++ b/app.py @@ -293,14 +293,7 @@ def add_player(): return redirect(url_for('dashboard')) return render_template('add_player.html') -@app.route('/integrate_player') -@login_required -@admin_required -def integrate_player(): - players = Player.query.all() - return render_template('integrate_player.html', players=players) - -@app.route('/edit_player/', methods=['GET', 'POST']) +@app.route('/player//edit', methods=['GET', 'POST']) @login_required @admin_required def edit_player(player_id): diff --git a/instance/dashboard.db b/instance/dashboard.db index 645d41bf2e7f5ef8b417f9ca9d5ecd68a4bcf272..155d7e9762c89153feaee6bb12f03c27a97de501 100644 GIT binary patch delta 327 zcmZp8z|`=7X@WGP;6xc`M!}5sdmr{{)-dj`6h2WNR_XBg{Mm4*kF1sEBaq?;6` zrzaU!`kIGT8F43-23nSeR;7kH7EaE!pU%O=|AvA83;&zVf(j4#71)`D8G&wM;%1iR z3@P)-&v8mLOMaw2eT+hl`+%iFY&w%yg+#d0R{&C#UKdu
Manage Player + Edit Player Full Screen {% if current_user.role == 'admin' %}
@@ -77,18 +78,6 @@ Upload Content
- - - {% if current_user.role == 'admin' %} -
-
-

Integrate Player

-
- -
- {% endif %} diff --git a/templates/integrate_player.html b/templates/integrate_player.html deleted file mode 100644 index a734bec..0000000 --- a/templates/integrate_player.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - Integrate Player - - - - -
-
- {% if logo_exists %} - - {% endif %} -

Integrate Player

-
- - -
-
-

Players

-
-
-
    - {% for player in players %} -
  • -
    - {{ player.username }} -
    -
    - View - - - -
    -
  • - {% endfor %} -
-
-
- - - -
-
-

Groups

-
-
-
- {% for group in groups %} -
-
-
-
{{ group.name }}
-

{{ group.players | length }} players

-
- - -
- Fullscreen Link -
-
-
- {% endfor %} -
-
-
- - Back to Dashboard -
- - - - \ No newline at end of file