Skip to content

Commit

Permalink
chore: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anth-volk committed Feb 2, 2024
1 parent d6265ee commit f99c938
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion policyengine_household_api/decorators/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ def decorated_function(*args, **kwargs):
decoded_token = jwt.decode(token, options={"verify_signature": False})
client_id = decoded_token["sub"]
suffix_to_slice = "@clients"
if len(client_id) >= len(suffix_to_slice) and client_id[-len(suffix_to_slice) :] == suffix_to_slice:
if (
len(client_id) >= len(suffix_to_slice)
and client_id[-len(suffix_to_slice) :] == suffix_to_slice
):
client_id = client_id[: -len(suffix_to_slice)]
new_visit.client_id = client_id

Expand Down

0 comments on commit f99c938

Please sign in to comment.