Skip to content

Commit

Permalink
refactor: format code (black)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrstrom committed Jul 16, 2024
1 parent 009e8ea commit ae63a09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion obr_core/account/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def get(request):

# TODO: remove this after testing
# this is only used to fix an issue in the iOS app
if hasattr(request.user, "settings") and request.user.settings.debug_enabled:
if (
hasattr(request.user, "settings")
and request.user.settings.debug_enabled
):
cdn_policy_ttl = 60 * 2

response = set_credentials(response, seconds_valid=cdn_policy_ttl)
Expand Down

0 comments on commit ae63a09

Please sign in to comment.