[weboob] [PATCH 1/2] openedx: fill message title using thread title

Simon Lipp laiquo at hwold.net
Tue Dec 27 16:03:18 CET 2016


Signed-off-by: Simon Lipp <laiquo at hwold.net>
---
 modules/openedx/module.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/openedx/module.py b/modules/openedx/module.py
index 3a947bd..85f7c75 100644
--- a/modules/openedx/module.py
+++ b/modules/openedx/module.py
@@ -89,7 +89,7 @@ class OpenEDXModule(Module, CapMessages):
 
         message = Message(thread = thread,
                 id = data["id"],
-                title = None,
+                title = (parent and "Re: %s" or "%s") % thread.title,
                 sender = data.get("username"),
                 receivers = None,
                 date = dateutil.parser.parse(data["created_at"]),
-- 
2.9.3



More information about the weboob mailing list