forked from MarseyWorld/MarseyWorld
master
parent
96f0fa3d48
commit
29c4bec4d4
|
@ -13,7 +13,7 @@ from files.classes import *
|
||||||
from flask import *
|
from flask import *
|
||||||
from files.__main__ import app, cache, limiter
|
from files.__main__ import app, cache, limiter
|
||||||
from .front import frontlist
|
from .front import frontlist
|
||||||
from files.helpers.discord import add_role, set_nick
|
from files.helpers.discord import add_role
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import requests
|
import requests
|
||||||
from urllib.parse import quote, urlencode
|
from urllib.parse import quote, urlencode
|
||||||
|
@ -24,16 +24,6 @@ GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip()
|
||||||
month = datetime.now().strftime('%B')
|
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>')
|
@app.post('/admin/merge/<id1>/<id2>')
|
||||||
@admin_level_required(3)
|
@admin_level_required(3)
|
||||||
def merge(v, id1, id2):
|
def merge(v, id1, id2):
|
||||||
|
|
Loading…
Reference in New Issue