Skip to content

Commit cf8d63a

Browse files
committed
introduction of STC_API_PATH variable
1 parent 9da91b2 commit cf8d63a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
ensa_pass=""
3030
collections=[]
3131
if( os.getenv('SOURCE','taiga').lower() == 'taiga'):
32-
url = f"{os.getenv('STC_API_BASEURL', 'https://taiga.archi.fr')}/taiga_libext/JsonRPC/api.php"
32+
path_api=os.getenv('STC_API_PATH', '/taiga_libext/JsonRPC/api.php')
33+
url = f"{os.getenv('STC_API_BASEURL', 'https://taiga.archi.fr')}{path_api}"
3334
ensa_pass = os.getenv('STC_API_PASSENSA') + datetime.now().strftime('%Y%m%d')
3435
ensa_infos = {
3536
"code_ensa": os.getenv('STC_API_CODEENSA', 'lyon'),

0 commit comments

Comments
 (0)