добавил предпросмотр и защиту от повторной отправки трудочасов
This commit is contained in:
3
main.py
3
main.py
@@ -26,6 +26,8 @@ def main():
|
||||
if is_debug := args.debug:
|
||||
config.MODE = "debug"
|
||||
logging.getLogger().setLevel(logging.DEBUG)
|
||||
if is_dry_run := args.dry_run:
|
||||
config.MODE = "debug"
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
db = Database(config.DB_NAME, config.SQL_PATH)
|
||||
@@ -52,6 +54,7 @@ def main():
|
||||
red=red,
|
||||
db=db,
|
||||
is_debug=is_debug,
|
||||
is_dry_run=is_dry_run,
|
||||
).track_period(start=start, end=end, page_size=args.page_size)
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
|
||||
Reference in New Issue
Block a user