From 29c4bec4d424ab39f4cc192f2f38d73d5e4f63fd Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 19 Mar 2022 17:33:02 +0200 Subject: [PATCH] vc --- files/routes/admin.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 28b05bc8d..0907b2aa3 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -13,7 +13,7 @@ from files.classes import * from flask import * from files.__main__ import app, cache, limiter from .front import frontlist -from files.helpers.discord import add_role, set_nick +from files.helpers.discord import add_role from datetime import datetime import requests from urllib.parse import quote, urlencode @@ -24,16 +24,6 @@ GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip() month = datetime.now().strftime('%B') -@app.get('/nick') -@admin_level_required(3) -def nick(v): - for u in g.db.query(User).filter(User.discord_id != None): - set_nick(u, u.username) - print(u.username) - - return 'sex' - - @app.post('/admin/merge//') @admin_level_required(3) def merge(v, id1, id2):