@@ -38,7 +38,7 @@ async def set_parameters(
3838 timeout = ClientTimeout (total = REQUEST_TIMEOUT )
3939 async with ClientSession (timeout = timeout ) as session :
4040 async with session .post (
41- f"{ os .getenv (" CLIENT_API_URL" )} /solve/{ user_id } " ,
41+ f"{ os .getenv (' CLIENT_API_URL' )} /solve/{ user_id } " ,
4242 json = payload
4343 ) as response :
4444 response .raise_for_status ()
@@ -61,7 +61,7 @@ async def set_user_settings(user_id, method, rounding, language, hints):
6161 timeout = ClientTimeout (total = REQUEST_TIMEOUT )
6262 async with ClientSession (timeout = timeout ) as session :
6363 async with session .post (
64- f"{ os .getenv (" CLIENT_API_URL" )} /users/{ user_id } " ,
64+ f"{ os .getenv (' CLIENT_API_URL' )} /users/{ user_id } " ,
6565 params = payload
6666 ) as response :
6767 response .raise_for_status ()
@@ -72,7 +72,7 @@ async def get_user_settings(user_id, method, rounding, language, hints):
7272 timeout = ClientTimeout (total = REQUEST_TIMEOUT )
7373 async with ClientSession (timeout = timeout ) as session :
7474 async with session .get (
75- f"{ os .getenv (" CLIENT_API_URL" )} /users/{ user_id } "
75+ f"{ os .getenv (' CLIENT_API_URL' )} /users/{ user_id } "
7676 ) as response :
7777 if response .status == 500 :
7878 return {
@@ -95,7 +95,7 @@ async def get_recent_applications(user_id):
9595 timeout = ClientTimeout (total = REQUEST_TIMEOUT )
9696 async with ClientSession (timeout = timeout ) as session :
9797 async with session .get (
98- f"{ os .getenv (" CLIENT_API_URL" )} /applications/{ user_id } "
98+ f"{ os .getenv (' CLIENT_API_URL' )} /applications/{ user_id } "
9999 ) as response :
100100 if response .status == 500 :
101101 return []
@@ -136,7 +136,7 @@ async def get_results(application_id):
136136 timeout = ClientTimeout (total = REQUEST_TIMEOUT )
137137 async with ClientSession (timeout = timeout ) as session :
138138 async with session .get (
139- f"{ os .getenv (" CLIENT_API_URL" )} /results/{ application_id } "
139+ f"{ os .getenv (' CLIENT_API_URL' )} /results/{ application_id } "
140140 ) as response :
141141 response .raise_for_status ()
142142 text = await response .text ()
@@ -151,7 +151,7 @@ async def get_application_status(application_id):
151151 timeout = ClientTimeout (total = REQUEST_TIMEOUT )
152152 async with ClientSession (timeout = timeout ) as session :
153153 async with session .get (
154- f"{ os .getenv (" CLIENT_API_URL" )} /applications/{ application_id } /status"
154+ f"{ os .getenv (' CLIENT_API_URL' )} /applications/{ application_id } /status"
155155 ) as response :
156156 response .raise_for_status ()
157157 return await response .text ()
0 commit comments