increase readability by using f-strings (#1597)

* increase readability by using f-strings

* readd merge conflict stuff

---------

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
Pavol Rusnak
2023-04-03 15:34:17 +02:00
committed by GitHub
co-authored by calle
parent 58c3b05e29
commit 689c443d72
9 changed files with 33 additions and 57 deletions
+1 -1
View File
@@ -570,7 +570,7 @@ async def api_lnurlscan(code: str, wallet: WalletTypeInfo = Depends(get_key_type
if k == "text/plain":
params.update(description=v)
if k in ("image/jpeg;base64", "image/png;base64"):
data_uri = "data:" + k + "," + v
data_uri = f"data:{k},{v}"
params.update(image=data_uri)
if k in ("text/email", "text/identifier"):
params.update(targetUser=v)