mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Create activity page
This commit is contained in:
parent
1496258e54
commit
480e25d157
1 changed files with 8 additions and 0 deletions
|
@ -355,6 +355,14 @@ def page_music_individual(discord_id: str):
|
|||
return render_template("topsongs.html", songs=songs, discord=discord)
|
||||
|
||||
|
||||
@app.route("/activity")
|
||||
def page_activity():
|
||||
db_session = db.Session()
|
||||
reports = db_session.query(db.ActivityReport).order_by(db.ActivityReport.timestamp.desc()).limit(192).all()
|
||||
db_session.close()
|
||||
return render_template("activity.html", activityreports=reports)
|
||||
|
||||
|
||||
@app.route("/api/token")
|
||||
def api_token():
|
||||
username = request.form.get("username", "")
|
||||
|
|
Loading…
Reference in a new issue