From 4d8866e70af619dfef402c375846193e9cbf7e07 Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:36:19 -0700 Subject: [PATCH] Auto-update: Mon Oct 28 12:36:19 PDT 2024 --- sijapi/routers/timing.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/sijapi/routers/timing.py b/sijapi/routers/timing.py index 043fce2..3d803e8 100644 --- a/sijapi/routers/timing.py +++ b/sijapi/routers/timing.py @@ -736,25 +736,6 @@ async def process_att_csv( } -async def post_time_entry_to_timing(entry): - url = f"{TIMING_API_URL}/time-entries" # The URL for posting time entries - headers = { - "Authorization": f"Bearer {TIMING_API_KEY}", - "Content-Type": "application/json", - "Accept": "application/json", - 'X-Time-Zone': 'America/Los_Angeles' # Set the timezone for the API request - } - data = { - "start_date": entry["Start_time"], # Format these according to the API's requirements - "end_date": entry["End_time"], - "project": entry["project"], - "title": entry["Task"], - "notes": "Automatically generated based on Rocketmatter reports.", - "replace_existing": False - } - response = await httpx.post(url, headers=headers, json=data) - return response.status_code, response.json() - @timing.get("/time/flagemoji/{country_code}") def flag_emoji(country_code: str):