Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
8b3c4512
Commit
8b3c4512
authored
Jul 12, 2017
by
Robin Sonnabend
Browse files
Do not use that modern python syntax
/close
#141
parent
68ec9f0b
Changes
1
Show whitespace changes
Inline
Side-by-side
models/database.py
View file @
8b3c4512
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment