mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 04:26:23 +03:00
not working mess
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from flask import Blueprint
|
||||
|
||||
from textsouls import db
|
||||
from textsouls import admin
|
||||
from textsouls.common.database import db
|
||||
from textsouls.common.admin import admin
|
||||
|
||||
from textsouls.common.api import register_api
|
||||
from textsouls.common.api import CommonAdminView
|
||||
from textsouls.common.admin import CommonAdminView
|
||||
|
||||
from textsouls.characters.models import CharacterRace
|
||||
from textsouls.characters.models import CharacterClass
|
||||
@@ -23,3 +23,12 @@ admin.add_view(CommonAdminView(CharacterRace, db.session))
|
||||
admin.add_view(CommonAdminView(CharacterClass, db.session))
|
||||
admin.add_view(CommonAdminView(CharacterState, db.session))
|
||||
admin.add_view(CommonAdminView(Character, db.session))
|
||||
|
||||
|
||||
from textsouls.telegram.tasks import broadcast_message
|
||||
|
||||
|
||||
@bp.route("/test", methods=["POST"])
|
||||
def run_task():
|
||||
task = broadcast_message.delay()
|
||||
return str(task.id), 202
|
||||
|
||||
Reference in New Issue
Block a user