excuses: Correct source field in YAML excuses

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent 0868962ee3
commit 3e1da36331

@ -263,6 +263,8 @@ class Excuse(object):
def excusedata(self):
"""Render the excuse in as key-value data"""
source = self.name
if '_' in source:
source = source.split("_")[0]
if '/' in source:
source = source.split("/")[0]
if source[0] == '-':

Loading…
Cancel
Save