Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
577fbd23
Verified
Commit
577fbd23
authored
Aug 17, 2019
by
Mattia Rizzolo
Browse files
Merge branch 'fix/package-short-desc' of salsa.debian.org:lyknode-guest/debexpo into live
MR:
!86
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parents
e48cdd53
4ee98689
Pipeline
#65377
passed with stage
in 6 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
debexpo/model/packages.py
View file @
577fbd23
...
@@ -66,7 +66,7 @@ class Package(OrmObject):
...
@@ -66,7 +66,7 @@ class Package(OrmObject):
return
self
.
description
return
self
.
description
def
short_description
(
self
):
def
short_description
(
self
):
return
re
.
sub
(
r
'^[^-]* - '
,
''
,
self
.
description
)
return
re
.
sub
(
r
'^[^-]* - '
,
''
,
self
.
description
)
.
split
(
'
\n
'
)[
0
]
orm
.
mapper
(
Package
,
t_packages
,
properties
=
{
orm
.
mapper
(
Package
,
t_packages
,
properties
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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