From 765fe2457bf669e99fea4d2d10098557d3d2e46a Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 8 Sep 2022 15:31:28 +0000 Subject: [PATCH] Fix webcal urls --- divent/bot.py | 4 ++-- divent/templates/subscribe.html.j2 | 4 ++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/divent/bot.py b/divent/bot.py index 62f6cae..1d5f45e 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -29,7 +29,7 @@ if SENTRY_DSN: class Discord(Client): async def on_ready(self): - print(f"Logged on as {self.user}!") + print(f"Logged on as {self.user}!", flush=True) client = Discord() @@ -49,7 +49,7 @@ CATALOG_CACHE = {} @app.errorhandler(500) async def errorhandler(error: Exception): - print(f"\33[31m{error}\33[m") + print(f"\33[31m{error}\33[m", flush=True) return await render_template("error.html.j2", error=str(error)), 500 diff --git a/divent/templates/subscribe.html.j2 b/divent/templates/subscribe.html.j2 index 2542389..6254b45 100644 --- a/divent/templates/subscribe.html.j2 +++ b/divent/templates/subscribe.html.j2 @@ -35,7 +35,7 @@
  • + href="webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.ics"> {{ _("Subscribe to") }} Apple @@ -47,7 +47,7 @@ + value="webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.ics"/> {% endblock content %} diff --git a/pyproject.toml b/pyproject.toml index a505b93..94b0908 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,4 +34,4 @@ build-backend = "poetry.core.masonry.api" [tool.djlint] extension = "j2" profile = "jinja" -ignore="H022" +ignore="H022,J018"