fd
This commit is contained in:
parent
c4cc3ba0f8
commit
f1163eeac1
1 changed files with 17 additions and 0 deletions
|
@ -12,6 +12,23 @@ def slash_post():
|
|||
|
||||
# this is a test
|
||||
|
||||
@app.get("/testing")
|
||||
def testing(v):
|
||||
notifications = g.db.query(Notification).all()
|
||||
|
||||
comments = []
|
||||
|
||||
t = time.time()
|
||||
|
||||
for x in notifications:
|
||||
x.read = True
|
||||
g.db.add(x)
|
||||
|
||||
g.db.commit()
|
||||
print(time.time() - t)
|
||||
return "sex"
|
||||
|
||||
|
||||
@app.get("/notifications")
|
||||
@auth_required
|
||||
def notifications(v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue