queues #13

Merged
emmatveev merged 2 commits from queues into dev 2024-11-24 23:56:00 +03:00

View File

@ -15,11 +15,8 @@ class PlatformClient:
self.stage = stage self.stage = stage
self.configs = configs self.configs = configs
self.experiments = experiments self.experiments = experiments
self.endpoint = 'https://platform.sprinthub.ru/' self.endpoint = 'http://configurator/'
self.configs_url = urllib.parse.urljoin(self.endpoint, 'configs/get') self.fetch_url = urllib.parse.urljoin(self.endpoint, '/api/v1/fetch')
self.experiments_url = urllib.parse.urljoin(self.endpoint, 'experiments/get')
self.staff_url = urllib.parse.urljoin(self.endpoint, 'is_staff')
self.fetch_url = urllib.parse.urljoin(self.endpoint, 'fetch')
self.config_storage = {} self.config_storage = {}
self.experiment_storage = {} self.experiment_storage = {}
self.staff_storage = {} self.staff_storage = {}
@ -44,7 +41,6 @@ class PlatformClient:
try: try:
response = get( response = get(
url, url,
headers={'X-Security-Token': self.platform_security_token},
params=params params=params
) )
if response.status_code == 200: if response.status_code == 200: