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:
parent
2521e7a912
commit
b19d8e8a73
2 changed files with 1 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue