master
Aevann1 2022-03-19 17:33:02 +02:00
parent 96f0fa3d48
commit 29c4bec4d4
1 changed files with 1 additions and 11 deletions

View File

@ -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/<id1>/<id2>')
@admin_level_required(3)
def merge(v, id1, id2):