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,19 +1,19 @@
|
||||
from flask import Blueprint
|
||||
|
||||
from textsouls import db
|
||||
from textsouls import admin
|
||||
|
||||
from textsouls.common.database import db
|
||||
from textsouls.common.api import register_api
|
||||
from textsouls.common.api import CommonAdminView
|
||||
from textsouls.common.admin import CommonAdminView
|
||||
|
||||
from textsouls.actions.models import DuelParticipant
|
||||
from textsouls.actions.models import Duel
|
||||
|
||||
|
||||
bp = Blueprint("actions", __name__)
|
||||
actions_bp = Blueprint("actions", __name__)
|
||||
|
||||
register_api(bp, DuelParticipant, "duels_participant")
|
||||
register_api(bp, Duel, "duels")
|
||||
register_api(actions_bp, DuelParticipant, "duels_participant")
|
||||
register_api(actions_bp, Duel, "duels")
|
||||
|
||||
admin.add_view(CommonAdminView(DuelParticipant, db.session))
|
||||
admin.add_view(CommonAdminView(Duel, db.session))
|
||||
|
||||
Reference in New Issue
Block a user