mirror of
https://github.com/RYGhub/song.git
synced 2024-12-18 01:04:19 +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:
|
else:
|
||||||
done = False
|
done = False
|
||||||
session["last_entry"] = None
|
session["last_entry"] = None
|
||||||
last_words = db.engine.execute("SELECT * FROM song ORDER BY time DESC LIMIT 3").fetchall()
|
last_words = db.engine.execute("SELECT * FROM song ORDER BY time").fetchall()
|
||||||
last_words.reverse()
|
|
||||||
return render_template("song.html", last_words=last_words, done=done)
|
return render_template("song.html", last_words=last_words, done=done)
|
||||||
elif request.method == "POST":
|
elif request.method == "POST":
|
||||||
if session.get("last_entry") and session["last_entry"] < dt.datetime.now() + dt.timedelta(1):
|
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.
|
Puoi aggiungere una parola una volta al giorno.
|
||||||
</h3>
|
</h3>
|
||||||
<div>
|
<div>
|
||||||
...
|
|
||||||
{% for word in last_words %}
|
{% for word in last_words %}
|
||||||
<span class="word" id="last-word-{{ loop.index }}">{{ word[2] }}</span>
|
<span class="word" id="last-word-{{ loop.index }}">{{ word[2] }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue