mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 00:12:04 +01:00 
			
		
		
		
	Move helloasso methods in a specific module
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -6,14 +6,15 @@ from datetime import datetime, timedelta
 | 
				
			|||||||
from django.conf import settings
 | 
					from django.conf import settings
 | 
				
			||||||
import requests
 | 
					import requests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
_access_token = None
 | 
					_access_token = None
 | 
				
			||||||
_refresh_token = None
 | 
					_refresh_token = None
 | 
				
			||||||
_expires_at = None
 | 
					_expires_at = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def _get_hello_asso_api_base_url():
 | 
					def _get_hello_asso_api_base_url():
 | 
				
			||||||
    if not settings.DEBUG:
 | 
					    if settings.HELLOASSO_TEST_ENDPOINT:
 | 
				
			||||||
 | 
					        return f"{settings.HELLOASSO_TEST_ENDPOINT_URL}/helloasso-test"
 | 
				
			||||||
 | 
					    elif not settings.DEBUG:
 | 
				
			||||||
        return "https://api.helloasso.com"
 | 
					        return "https://api.helloasso.com"
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        return "https://api.helloasso-sandbox.com"
 | 
					        return "https://api.helloasso-sandbox.com"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user