product
This commit is contained in:
parent
4d44da4ecf
commit
96bc6ceed0
Binary file not shown.
|
|
@ -132,6 +132,7 @@ def get_genres(product):
|
|||
|
||||
|
||||
def save_product(conn, product):
|
||||
conn = sqlite3.connect("./files/rokky.db")
|
||||
cursor = conn.cursor()
|
||||
|
||||
cursor.execute("""
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue