Skip to content

Commit

Permalink
apply f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Oct 24, 2024
1 parent b22ed34 commit 0ed5291
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions status/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ def get(self):
if url is None:
url = "/"
else:
url = "/unauthorized?email={}&contact={}".format(
user.emails[0], self.application.settings["contact_person"]
)
url = f"/unauthorized?email={user.emails[0]}&contact={self.application.settings['contact_person']}"
self.redirect(url)

else:
Expand Down

0 comments on commit 0ed5291

Please sign in to comment.