Commit 6cd2d24c authored by Francesco Poldi's avatar Francesco Poldi

Fix background_image format #645

parent acf43234
...@@ -71,7 +71,10 @@ def User(_format, u): ...@@ -71,7 +71,10 @@ def User(_format, u):
output = output.replace("{private}", str(u.is_private)) output = output.replace("{private}", str(u.is_private))
output = output.replace("{verified}", str(u.is_verified)) output = output.replace("{verified}", str(u.is_verified))
output = output.replace("{avatar}", u.avatar) output = output.replace("{avatar}", u.avatar)
output = output.replace("{background_image}", u.background_image) if u.background_image:
output = output.replace("{background_image}", u.background_image)
else:
output = output.replace("{background_image}", "")
else: else:
logme.debug(__name__+':User:notFormat') logme.debug(__name__+':User:notFormat')
output = f"{u.id} | {u.name} | @{u.username} | Private: " output = f"{u.id} | {u.name} | @{u.username} | Private: "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment