fix excution bug

This commit is contained in:
2026-04-09 15:33:12 +09:00
parent 9b9be69789
commit c60ec655c1
11 changed files with 31 additions and 33 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4 -6
View File
@@ -23,7 +23,7 @@ from .lib.utils import linkkf_async_timeit
# import snoop
# from snoop import spy
from framework import db, get_logger
from framework import F, db, get_logger
from framework.util import Util
# 패키지
@@ -1517,12 +1517,14 @@ class LogicLinkkf(object):
@staticmethod
def scheduler_function():
try:
with F.app.app_context():
logger.debug("Linkkf scheduler_function start..")
whitelist_program = ModelSetting.get("whitelist_program")
whitelist_program = ModelSetting.get("whitelist_program") or ""
whitelist_programs = [
x.strip().replace(" ", "")
for x in whitelist_program.replace("\n", ",").split(",")
if x.strip() != ""
]
logger.debug(f"whitelist_programs: {whitelist_programs}")
@@ -1538,10 +1540,8 @@ class LogicLinkkf(object):
)
logger.debug(f"downloaded:: {downloaded}")
dl_codes = [dl.episodecode for dl in downloaded]
# logger.debug("dl_codes:: %s", dl_codes)
logger.info("downloaded codes :%s", dl_codes)
# if len(dl_codes) > 0:
data = LogicLinkkf.get_title_info(code)
logger.debug(f"data:: {data}")
@@ -1549,9 +1549,7 @@ class LogicLinkkf(object):
e_code = episode["code"]
if e_code not in dl_codes:
logger.info("Logic Queue added :%s", e_code)
logger.debug(f"episode:: {episode}")
print("temp==============")
LogicQueue.add_queue(episode)
logger.debug("========================================")