From 3e1da3633128b204d208f62c9fa92ce7fd76cd47 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Tue, 7 Aug 2018 18:29:08 +0000 Subject: [PATCH] excuses: Correct source field in YAML excuses Signed-off-by: Niels Thykier --- britney2/excuse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/britney2/excuse.py b/britney2/excuse.py index 065cb21..5f6ad54 100644 --- a/britney2/excuse.py +++ b/britney2/excuse.py @@ -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] == '-':