Skip to content

Commit

Permalink
fix 500 error
Browse files Browse the repository at this point in the history
  • Loading branch information
depocoder committed Sep 23, 2024
1 parent 6384024 commit 04adf7c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions backend/integration/modeus.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,8 @@ async def get_events(__jwt: str, body: ModeusSearchEvents, timeout: int = 15) ->
base_url="https://utmn.modeus.org/",
timeout=timeout,
)
headers = {
"Authorization": f"Bearer {__jwt}",
"accept": "application/json",
"content-type": "application/json"
}
session.headers["Authorization"] = f"Bearer {__jwt}"
session.headers["content-type"] = "application/json"
response = await session.post("/schedule-calendar-v2/api/calendar/events/search",
headers=headers,
json=body.json(by_alias=True))
print(response.text)
data=body.model_dump_json(by_alias=True))
return response.json()

0 comments on commit 04adf7c

Please sign in to comment.