fix: old data support problem.

This commit is contained in:
EstrellaXD
2023-08-07 20:14:45 +08:00
parent 84d5dbaceb
commit 1c4e8dc293
18 changed files with 136 additions and 66 deletions

View File

@@ -1,7 +1,7 @@
import logging
from module.conf import VERSION, settings
from module.update import data_migration
from module.update import data_migration, start_up
from .sub_thread import RenameThread, RSSThread
@@ -32,6 +32,7 @@ class Program(RenameThread, RSSThread):
def startup(self):
self.__start_info()
start_up(self.first_run)
if self.first_run:
logger.info("First run detected, please configure the program in webui.")
return {"status": "First run detected."}