locust-cloud 1.11.6__py3-none-any.whl → 1.11.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
locust_cloud/__init__.py CHANGED
@@ -83,6 +83,7 @@ def add_arguments(parser: LocustArgumentParser):
83
83
  type=str,
84
84
  env_var="LOCUSTCLOUD_PROFILE",
85
85
  help=configargparse.SUPPRESS,
86
+ default=None,
86
87
  )
87
88
 
88
89
 
locust_cloud/auth.py CHANGED
@@ -410,7 +410,7 @@ def register_auth(environment: locust.env.Environment):
410
410
 
411
411
  if session.get("challenge_session"):
412
412
  session["challenge_session"] = ""
413
- return redirect(url_for("https://docs.locust.cloud/"))
413
+ return redirect("https://docs.locust.cloud/")
414
414
 
415
415
  return redirect(url_for("locust.login"))
416
416
  except requests.exceptions.HTTPError as e:
@@ -293,7 +293,7 @@ WHERE id = current_user
293
293
  profiles = """
294
294
  SELECT DISTINCT
295
295
  CASE
296
- WHEN profile IS NOT NULL THEN profile
296
+ WHEN profile IS NOT NULL AND profile != '' THEN profile
297
297
  ELSE locustfile
298
298
  END AS profile
299
299
  FROM testruns