Skip to content

Commit

Permalink
use fstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 3, 2024
1 parent 54d6826 commit 5515fbb
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/pas/plugins/authomatic/services/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ def get_providers(self):
entry = provider.get("display", {})
title = entry.get("title", provider_id)
options.append(
dict(
id=provider_id,
plugin="authomatic",
title=title,
url=self.context.absolute_url()
+ "/@login-authomatic/"
+ provider_id,
)
{
"id": provider_id,
"plugin": "authomatic",
"title": title,
"url": f"{self.context.absolute_url()}/@login-authomatic/${provider_id}",
}
)

return {"options": options}

0 comments on commit 5515fbb

Please sign in to comment.