Edition des pojos

This commit is contained in:
Kepka Ludovic
2025-08-29 13:44:00 +02:00
parent fc5697fc3f
commit 69edfd4771
10 changed files with 147 additions and 10 deletions

View File

@@ -3,15 +3,10 @@ from webapp import webapp
from database import db
from database.helpers import ConfigurationHelper
from discordbot import bot
from discord import TextChannel
@webapp.route("/configurations")
def openConfigurations():
channels = []
for channel in bot.get_all_channels():
if isinstance(channel, TextChannel):
channels.append(channel)
return render_template("configurations.html", configuration = ConfigurationHelper(), channels = channels)
return render_template("configurations.html", configuration = ConfigurationHelper(), channels = bot.getAllTextChannel())
@webapp.route("/configurations/update", methods=['POST'])
def updateConfiguration():