diff --git a/OUT_FOLDER/989e3447-f5ea-4568-914a-25f407190e50.svg b/OUT_FOLDER/989e3447-f5ea-4568-914a-25f407190e50.svg new file mode 100644 index 0000000000..213c518ece --- /dev/null +++ b/OUT_FOLDER/989e3447-f5ea-4568-914a-25f407190e50.svg @@ -0,0 +1,2 @@ + +Hermitong2024: -65688 金币Jan2024-01-012024-01-022024-01-032024-01-042024-01-052024-01-062024-01-072024-01-082024-01-092024-01-102024-01-112024-01-122024-01-132024-01-142024-01-152024-01-162024-01-172024-01-182024-01-192024-01-202024-01-212024-01-222024-01-232024-01-242024-01-252024-01-262024-01-272024-01-282024-01-292024-01-302024-01-312024-02-012024-02-022024-02-032024-02-04Feb2024-02-052024-02-062024-02-072024-02-082024-02-092024-02-102024-02-112024-02-122024-02-132024-02-142024-02-152024-02-162024-02-172024-02-182024-02-192024-02-202024-02-212024-02-222024-02-232024-02-242024-02-252024-02-262024-02-272024-02-282024-02-292024-03-012024-03-022024-03-03Mar2024-03-042024-03-052024-03-062024-03-072024-03-082024-03-092024-03-102024-03-112024-03-122024-03-132024-03-142024-03-152024-03-162024-03-172024-03-182024-03-192024-03-202024-03-212024-03-222024-03-232024-03-242024-03-252024-03-262024-03-272024-03-282024-03-292024-03-302024-03-31Apr2024-04-012024-04-022024-04-032024-04-04 77 金币2024-04-05 -2473 金币2024-04-06 310 金币2024-04-07 1301 金币2024-04-08 467 金币2024-04-09 373 金币2024-04-10 1400 金币2024-04-11 662 金币2024-04-12 -2362 金币2024-04-13 -2930 金币2024-04-142024-04-152024-04-16 -2400 金币2024-04-17 -14500 金币2024-04-18 625 金币2024-04-19 805 金币2024-04-20 -2750 金币2024-04-21 87 金币2024-04-222024-04-23 600 金币2024-04-24 709 金币2024-04-25 1641 金币2024-04-26 335 金币2024-04-272024-04-28 775 金币2024-04-29 3166 金币2024-04-30 775 金币2024-05-012024-05-022024-05-03 680 金币2024-05-042024-05-05May2024-05-06 195 金币2024-05-072024-05-08 183 金币2024-05-09 -142 金币2024-05-10 1397 金币2024-05-11 -608 金币2024-05-12 -636 金币2024-05-13 2155 金币2024-05-14 1282 金币2024-05-15 447 金币2024-05-16 -810 金币2024-05-17 -714 金币2024-05-18 -910 金币2024-05-19 -301 金币2024-05-202024-05-212024-05-222024-05-23 -1397 金币2024-05-24 -1830 金币2024-05-25 -1790 金币2024-05-26 -1990 金币2024-05-27 -1750 金币2024-05-28 -1204 金币2024-05-29 -2436 金币2024-05-30 -1585 金币2024-05-31 -622 金币2024-06-01 -715 金币2024-06-02 -270 金币Jun2024-06-032024-06-042024-06-052024-06-062024-06-072024-06-082024-06-092024-06-102024-06-112024-06-122024-06-132024-06-142024-06-152024-06-162024-06-172024-06-18 -122 金币2024-06-19 -1058 金币2024-06-20 -992 金币2024-06-21 -856 金币2024-06-22 -1161 金币2024-06-23 -1100 金币2024-06-24 -810 金币2024-06-25 -1538 金币2024-06-26 -747 金币2024-06-27 -869 金币2024-06-28 -738 金币2024-06-29 -681 金币2024-06-30 -505 金币Jul2024-07-012024-07-022024-07-032024-07-042024-07-052024-07-062024-07-072024-07-082024-07-092024-07-102024-07-112024-07-12 -681 金币2024-07-13 -820 金币2024-07-14 -1023 金币2024-07-15 -1232 金币2024-07-16 -810 金币2024-07-17 -1091 金币2024-07-18 -702 金币2024-07-19 -1087 金币2024-07-20 -1124 金币2024-07-21 -772 金币2024-07-22 -889 金币2024-07-23 -649 金币2024-07-24 -891 金币2024-07-25 -845 金币2024-07-26 -1087 金币2024-07-27 -928 金币2024-07-28 -10737 金币2024-07-292024-07-302024-07-312024-08-012024-08-022024-08-032024-08-04 -67 金币Aug2024-08-05 -563 金币2024-08-06 -919 金币2024-08-07 -750 金币2024-08-08 -166 金币2024-08-092024-08-102024-08-112024-08-122024-08-132024-08-142024-08-152024-08-162024-08-172024-08-182024-08-192024-08-202024-08-212024-08-222024-08-232024-08-242024-08-252024-08-262024-08-272024-08-282024-08-292024-08-302024-08-312024-09-01Sep2024-09-022024-09-032024-09-042024-09-052024-09-062024-09-072024-09-082024-09-092024-09-102024-09-112024-09-122024-09-132024-09-142024-09-152024-09-162024-09-172024-09-182024-09-192024-09-202024-09-212024-09-222024-09-232024-09-242024-09-252024-09-262024-09-272024-09-282024-09-292024-09-302024-10-012024-10-022024-10-032024-10-042024-10-052024-10-06Oct2024-10-072024-10-082024-10-092024-10-102024-10-112024-10-122024-10-132024-10-142024-10-152024-10-162024-10-172024-10-182024-10-192024-10-202024-10-212024-10-222024-10-232024-10-242024-10-252024-10-262024-10-272024-10-282024-10-292024-10-302024-10-312024-11-012024-11-022024-11-03Nov2024-11-042024-11-052024-11-062024-11-072024-11-082024-11-092024-11-102024-11-112024-11-122024-11-132024-11-142024-11-152024-11-162024-11-172024-11-182024-11-192024-11-202024-11-212024-11-222024-11-232024-11-242024-11-252024-11-262024-11-272024-11-282024-11-292024-11-302024-12-01Dec2024-12-022024-12-032024-12-042024-12-052024-12-062024-12-072024-12-082024-12-092024-12-102024-12-112024-12-122024-12-132024-12-142024-12-152024-12-162024-12-172024-12-182024-12-192024-12-202024-12-212024-12-222024-12-232024-12-242024-12-252024-12-262024-12-272024-12-282024-12-292024-12-302024-12-31 \ No newline at end of file diff --git a/scripts/__pycache__/config.cpython-39.pyc b/scripts/__pycache__/config.cpython-39.pyc new file mode 100644 index 0000000000..c01e33eb96 Binary files /dev/null and b/scripts/__pycache__/config.cpython-39.pyc differ diff --git a/scripts/__pycache__/notion_helper.cpython-39.pyc b/scripts/__pycache__/notion_helper.cpython-39.pyc new file mode 100644 index 0000000000..5cf40a817f Binary files /dev/null and b/scripts/__pycache__/notion_helper.cpython-39.pyc differ diff --git a/scripts/__pycache__/utils.cpython-39.pyc b/scripts/__pycache__/utils.cpython-39.pyc new file mode 100644 index 0000000000..62bc2f983c Binary files /dev/null and b/scripts/__pycache__/utils.cpython-39.pyc differ diff --git a/scripts/toggl.py b/scripts/toggl.py index d3aec03852..87770c8e77 100644 --- a/scripts/toggl.py +++ b/scripts/toggl.py @@ -15,7 +15,7 @@ def get_time_entries(): now = pendulum.now("UTC") # toggl只支持90天的数据 end = now.to_iso8601_string() - start = now.subtract(days=90).start_of("day") + start = now.subtract(days=89).start_of("day") # 格式化时间 start = start.to_iso8601_string() params = {"start_date": start, "end_date": end} @@ -31,7 +31,7 @@ def insert_to_notion(): now = pendulum.now("Asia/Shanghai") # toggl只支持90天的数据 end = now.to_iso8601_string() - start = now.subtract(days=90).start_of("day") + start = now.subtract(days=89).start_of("day") # 格式化时间 start = start.to_iso8601_string() sorts = [{"property": "时间", "direction": "descending"}] @@ -123,7 +123,6 @@ def insert_to_notion(): icon = {"type": "emoji", "emoji": emoji} notion_helper.create_page(parent=parent, properties=properties, icon=icon) - if __name__ == "__main__": notion_helper = NotionHelper() auth = HTTPBasicAuth(f"{os.getenv('EMAIL').strip()}", f"{os.getenv('PASSWORD').strip()}")