1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2018-07-28 22:28:43 +02:00
parent 79e967a517
commit 83a9263fbc
2 changed files with 2 additions and 31 deletions

View file

@ -599,7 +599,7 @@ async def queue_play_next_video():
voice_player = await now_playing.create_player() voice_player = await now_playing.create_player()
voice_player.start() voice_player.start()
if now_playing.enqueuer is not None: if now_playing.enqueuer is not None:
session = await loop.run_in_executor(executor, db.Session) session = await loop.run_in_executor(executor, db.Session.__init__)
enqueuer = await loop.run_in_executor(executor, session.query(db.Discord).filter_by(discord_id=now_playing.enqueuer.id).one_or_none) enqueuer = await loop.run_in_executor(executor, session.query(db.Discord).filter_by(discord_id=now_playing.enqueuer.id).one_or_none)
played_music = db.PlayedMusic(enqueuer=enqueuer, played_music = db.PlayedMusic(enqueuer=enqueuer,
filename=now_playing.file, filename=now_playing.file,

View file

@ -46,7 +46,7 @@
<div class="box lower-box"> <div class="box lower-box">
<ul> <ul>
<li><a href="/game/ryg">Royal Games</a></li> <li><a href="/game/ryg">Royal Games</a></li>
<li><a href="/game/telegram">Telegram</a></li> <li><a href="/game/tg">Telegram</a></li>
<li><a href="/game/discord">Discord</a></li> <li><a href="/game/discord">Discord</a></li>
<li><a href="/game/steam">Steam</a></li> <li><a href="/game/steam">Steam</a></li>
<li><a href="/game/dota">Dota 2</a></li> <li><a href="/game/dota">Dota 2</a></li>
@ -65,33 +65,4 @@
</div> </div>
</div> </div>
</div> </div>
<!--
<h2>Profili</h2>
<ul>
{% for user in royals %}
<li><a href="/profile/{{ user.username }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
<h2>Giochi</h2>
<ul>
<li><a href="/game/ryg">Royal Games</a></li>
<li><a href="/game/steam">Steam</a></li>
<li><a href="/game/dota">Dota 2</a></li>
<li><a href="/game/rl">Rocket League</a></li>
<li><a href="/game/lol">League of Legends</a></li>
<li><a href="/game/ow">Overwatch</a></li>
<li><a href="/game/osu">osu!</a></li>
</ul>
<h2>Wiki</h2>
<ul>
{% for page in wiki_pages %}
<li><a href="/wiki/{{ page.key }}">{{ page.key }}</a></li>
{% endfor %}
</ul>
<h2>Diario</h2>
<ul>
<a href="/diario">Nuovo</a>
</ul>
</div>
-->
{% endblock %} {% endblock %}