This commit is contained in:
parent
b2d3b7713f
commit
765fe2457b
@ -29,7 +29,7 @@ if SENTRY_DSN:
|
|||||||
|
|
||||||
class Discord(Client):
|
class Discord(Client):
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
print(f"Logged on as {self.user}!")
|
print(f"Logged on as {self.user}!", flush=True)
|
||||||
|
|
||||||
|
|
||||||
client = Discord()
|
client = Discord()
|
||||||
@ -49,7 +49,7 @@ CATALOG_CACHE = {}
|
|||||||
|
|
||||||
@app.errorhandler(500)
|
@app.errorhandler(500)
|
||||||
async def errorhandler(error: Exception):
|
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
|
return await render_template("error.html.j2", error=str(error)), 500
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a class="button"
|
<a class="button"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="{{ url_for(".ical", _scheme="webcal", guild_id=guild.vanity_url_code|default(guild.id, True)) }}">
|
href="webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.ics">
|
||||||
<i class="fa fa-apple"></i>
|
<i class="fa fa-apple"></i>
|
||||||
{{ _("Subscribe to") }} Apple
|
{{ _("Subscribe to") }} Apple
|
||||||
</a>
|
</a>
|
||||||
@ -47,7 +47,7 @@
|
|||||||
<input type="text"
|
<input type="text"
|
||||||
readonly
|
readonly
|
||||||
class="black_input"
|
class="black_input"
|
||||||
value="{{ url_for(".ical", _scheme="webcal", guild_id=guild.vanity_url_code|default(guild.id, True)) }}"/>
|
value="webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.ics"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -34,4 +34,4 @@ build-backend = "poetry.core.masonry.api"
|
|||||||
[tool.djlint]
|
[tool.djlint]
|
||||||
extension = "j2"
|
extension = "j2"
|
||||||
profile = "jinja"
|
profile = "jinja"
|
||||||
ignore="H022"
|
ignore="H022,J018"
|
||||||
|
Loading…
Reference in New Issue
Block a user