master
Aevann1 2022-03-19 17:11:03 +02:00
parent e3a8d03549
commit 86e8c97728
1 changed files with 11 additions and 1 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
from files.helpers.discord import add_role, set_nick
from datetime import datetime
import requests
from urllib.parse import quote, urlencode
@ -24,6 +24,16 @@ 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):