yolo i guess
This commit is contained in:
parent
155d56d012
commit
814c6eb62c
2 changed files with 35 additions and 20 deletions
|
@ -23,16 +23,6 @@ GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip()
|
|||
|
||||
month = datetime.now().strftime('%B')
|
||||
|
||||
@app.get('/admin/default')
|
||||
@admin_level_required(3)
|
||||
def default(v):
|
||||
for u in g.db.query(User).filter(User.profileurl == None).all():
|
||||
u.profileurl = '/e/' + random.choice(marseys_const) + '.webp'
|
||||
g.db.add(u)
|
||||
print(u.username, flush=True)
|
||||
g.db.commit()
|
||||
return 'done'
|
||||
|
||||
@app.get('/admin/merge/<id1>/<id2>')
|
||||
@admin_level_required(3)
|
||||
def merge(v, id1, id2):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue