forked from MarseyWorld/MarseyWorld
gdf
parent
e3a8d03549
commit
86e8c97728
|
@ -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
|
from files.helpers.discord import add_role, set_nick
|
||||||
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,6 +24,16 @@ 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