Beispiel #1
0
# -*- encoding: UTF-8 -*-

import utils
import logging
import work_flow
import settings
import schedule
import time

logging.basicConfig(format='%(asctime)s %(message)s',
                    filename='sequoia.log',
                    level=logging.DEBUG)

# def job():
#     if utils.is_weekday():
#         work_flow.process()
#
#
# settings.init()
# EXEC_TIME = "15:15"
# schedule.every().day.at(EXEC_TIME).do(job)
#
# while True:
#     schedule.run_pending()
#     time.sleep(1)

settings.init()
work_flow.process()
Beispiel #2
0
def job():
    if utils.is_weekday():
        work_flow.process()