Fix: Explicit import of models in setup.py to force table creation
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: GDM
|
name: GDM
|
||||||
package_name: gommi_downloader_manager
|
package_name: gommi_downloader_manager
|
||||||
version: '0.1.15'
|
version: '0.1.16'
|
||||||
description: FlaskFarm 범용 다운로더 큐 - YouTube, 애니24, 링크애니, Anilife 지원
|
description: FlaskFarm 범용 다운로더 큐 - YouTube, 애니24, 링크애니, Anilife 지원
|
||||||
developer: projectdx
|
developer: projectdx
|
||||||
home: https://gitea.yommi.duckdns.org/projectdx/gommi_downloader_manager
|
home: https://gitea.yommi.duckdns.org/projectdx/gommi_downloader_manager
|
||||||
|
|||||||
7
setup.py
7
setup.py
@@ -52,6 +52,13 @@ from plugin import *
|
|||||||
|
|
||||||
P = create_plugin_instance(setting)
|
P = create_plugin_instance(setting)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import flask
|
||||||
|
from flask import Blueprint
|
||||||
|
from .model import ModelSetting, ModelDownloadItem
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from .mod_queue import ModuleQueue
|
from .mod_queue import ModuleQueue
|
||||||
P.set_module_list([ModuleQueue])
|
P.set_module_list([ModuleQueue])
|
||||||
|
|||||||
Reference in New Issue
Block a user