summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-11-23 16:23:04 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-11-23 16:23:04 +0800
commite68c70e2da2d3c84e0accf4a7e85e9dd93029e39 (patch)
tree239e6a189a6afea2ee2af7d84674f26c7ac61956
parent1f195092b4473898077539571c579fa306be75e3 (diff)
Fetch givaback jForm in routine
-rw-r--r--jimbrella/routine.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/jimbrella/routine.py b/jimbrella/routine.py
index 471c498..a4ad638 100644
--- a/jimbrella/routine.py
+++ b/jimbrella/routine.py
@@ -128,10 +128,7 @@ def process_overdue(db: Database):
if __name__ == "__main__":
takeaway = JForm("takeaway", JFORM_TAKEAWAY_URL, JFORM_BOOKMARK_DIR)
- # giveback = JForm(
- # "giveback", JFORM_GIVEBACK_URL, JFORM_BOOKMARK_DIR
- # )
- giveback = None
+ giveback = JForm("giveback", JFORM_GIVEBACK_URL, JFORM_BOOKMARK_DIR)
db = Database(DATABASE_PATH)
admin_log = AdminLog(ADMIN_LOG_PATH)
sync_database(takeaway, giveback, db, admin_log)