1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2018-10-04 00:24:50 +02:00
parent 38ed4c292d
commit d81c23caed
2 changed files with 32 additions and 1 deletions

View file

@ -212,7 +212,9 @@ def cmd_diario(bot: Bot, update: Update):
text=text)
session.add(diario)
session.commit()
bot.send_message(update.message.chat.id, f"✅ Aggiunto al diario!")
bot.send_message(update.message.chat.id,
f"✅ Riga [#{diario.id}](https://ryg.steffo.eu/diario#entry-{diario.id}) aggiunta al diario!",
parse_mode="Markdown", disable_web_page_preview=True)
except Exception:
raise
finally:

29
templates/ritual.html Normal file
View file

@ -0,0 +1,29 @@
{% extends 'base.html' %}
{% block pagetitle %}
Rituale {{ n }}
{% endblock %}
{% block body %}
<h1>
Rituale {{ n }}
</h1>
<div class="ritual-page">
<div class="ritual-description">
{% if n == 1 %}
{% elif n == 2 %}
{% elif n == 3 %}
{% elif n == 4 %}
{% elif n == 5 %}
{% elif n == 6 %}
{% elif n == 7 %}
{% elif n == 8 %}
{% elif n == 9 %}
{% elif n == 10 %}
{% endif %}
</div>
<form method="POST" action="/ritual/{{ n }}">
<input type="submit" value="Controlla">
</form>
</div>
{% endblock %}