This commit is contained in:
root 2026-04-18 15:21:10 +02:00
parent 4d44da4ecf
commit 96bc6ceed0
6 changed files with 8 additions and 1 deletions

View File

@ -132,6 +132,7 @@ def get_genres(product):
def save_product(conn, product):
conn = sqlite3.connect("./files/rokky.db")
cursor = conn.cursor()
cursor.execute("""

View File

@ -14,9 +14,15 @@ def run_task():
def run_task1():
print("START download_products")
download_products()
print("START decrypt_and_unpack")
decrypt_and_unpack("products")
print("START add_product")
add_product()
print("END-s add_product!!!")
print("REDs download__product:", datetime.datetime.now())
def run_task2():

View File

@ -11,7 +11,7 @@ def start_scheduler():
scheduler.add_job(run_task2, 'interval', minutes=1, next_run_time=datetime.datetime.now())
scheduler.add_job(run_task, 'interval', minutes=5)
scheduler.add_job(run_task1, 'interval', days=1)
scheduler.add_job(run_task1, 'interval', days=1, next_run_time=datetime.datetime.now())
# scheduler.add_job(
# run_task3,
# 'interval',