Commit 8b3c4512 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Do not use that modern python syntax

/close #141
parent 68ec9f0b
......@@ -679,7 +679,7 @@ class Error(DatabaseModel):
lines = self.description.splitlines()
if len(lines) <= 4:
return "\n".join(lines)
return "\n".join([*lines[:2], "…", *lines[-2:]])
return "\n".join(["\n".join(lines[:2]), "…", "\n".join(lines[-2:])])
class TodoMail(DatabaseModel):
__tablename__ = "todomails"
Supports Markdown
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