1
Fork 0
mirror of https://github.com/RYGhub/song.git synced 2024-11-23 21:44:21 +00:00

Remove 3 word limit

This commit is contained in:
Steffo 2017-09-23 19:36:43 +02:00
parent 2521e7a912
commit b19d8e8a73
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D
2 changed files with 1 additions and 3 deletions

View file

@ -26,8 +26,7 @@ def page_main():
else:
done = False
session["last_entry"] = None
last_words = db.engine.execute("SELECT * FROM song ORDER BY time DESC LIMIT 3").fetchall()
last_words.reverse()
last_words = db.engine.execute("SELECT * FROM song ORDER BY time").fetchall()
return render_template("song.html", last_words=last_words, done=done)
elif request.method == "POST":
if session.get("last_entry") and session["last_entry"] < dt.datetime.now() + dt.timedelta(1):

View file

@ -27,7 +27,6 @@
Puoi aggiungere una parola una volta al giorno.
</h3>
<div>
...
{% for word in last_words %}
<span class="word" id="last-word-{{ loop.index }}">{{ word[2] }}</span>
{% endfor %}