mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 06:40:35 +01:00
17 lines
505 B
Python
17 lines
505 B
Python
from flask import render_template
|
|
from webapp import webapp
|
|
from database.models import ModerationEvent
|
|
|
|
@webapp.route("/")
|
|
def index():
|
|
status = webapp.config["BOT_STATUS"]
|
|
sanctions_count = ModerationEvent.query.count()
|
|
return render_template(
|
|
"index.html",
|
|
discord_connected=status["discord_connected"],
|
|
discord_guild_count=status["discord_guild_count"],
|
|
sanctions_count=sanctions_count,
|
|
twitch_connected=status["twitch_connected"],
|
|
twitch_channel_name=status["twitch_channel_name"],
|
|
)
|