From 47a62a1683eafd323d79a47688a649db186357ae Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2015 20:51:44 +0200 Subject: Added counter to rules --- servo/models/note.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'servo/models/note.py') diff --git a/servo/models/note.py b/servo/models/note.py index 5db054b..ad92f7e 100644 --- a/servo/models/note.py +++ b/servo/models/note.py @@ -231,6 +231,7 @@ class Note(MPTTModel): return ' '.join(classes) def find_parent(self, txt): + """Finds the parent of this note""" cookie = re.search(r'\(SRO#([\w/]+)\)', txt) if not cookie: @@ -249,9 +250,7 @@ class Note(MPTTModel): @classmethod def from_email(cls, msg, user): - """ - Creates a new Note from an email message - """ + """Creates a new Note from an email message""" sender = decode_header(msg['From']) detected = chardet.detect(sender[0][0]).get('encoding') sender = [i[0].decode(i[1] or detected) for i in sender] -- cgit v1.2.3