mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-15 04:30:37 +01:00
Edition des pojos
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user