1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
This commit is contained in:
Steffo 2018-07-28 22:21:04 +02:00
parent a3605b9913
commit d4687396e7
2 changed files with 2 additions and 2 deletions

View file

@ -117,4 +117,4 @@ LEFT JOIN
GROUP BY playedmusic.enqueuer_id GROUP BY playedmusic.enqueuer_id
) last_play_times ON playedmusic.timestamp = last_play_times.last_play_time ) last_play_times ON playedmusic.timestamp = last_play_times.last_play_time
) last_songs ON last_songs.discord_id = discord.discord_id ) last_songs ON last_songs.discord_id = discord.discord_id
WHERE discord.royal_id = ?;""" WHERE discord.royal_id = :royal;"""

View file

@ -82,7 +82,7 @@ def page_profile(name: str):
lol = db_session.query(db.LeagueOfLegends).filter_by(royal=user).one_or_none() lol = db_session.query(db.LeagueOfLegends).filter_by(royal=user).one_or_none()
ow = db_session.query(db.Overwatch).filter_by(royal=user).one_or_none() ow = db_session.query(db.Overwatch).filter_by(royal=user).one_or_none()
tg = db_session.query(db.Telegram).filter_by(royal=user).one_or_none() tg = db_session.query(db.Telegram).filter_by(royal=user).one_or_none()
discord = db_session.bind.execute(query_discord_music.one_query, user.id).fetchone() discord = db_session.execute(query_discord_music.one_query, royal=user.id).fetchone()
db_session.close() db_session.close()
return render_template("profile.html", ryg=user, css=css, osu=osu, rl=rl, dota=dota, lol=lol, steam=steam, ow=ow, return render_template("profile.html", ryg=user, css=css, osu=osu, rl=rl, dota=dota, lol=lol, steam=steam, ow=ow,
tg=tg, discord=discord, config=config) tg=tg, discord=discord, config=config)