[weboob] [PATCH 2/2] openedx: fix forum index url

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


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

diff --git a/modules/openedx/browser.py b/modules/openedx/browser.py
index 1e1acdc..7aa267a 100644
--- a/modules/openedx/browser.py
+++ b/modules/openedx/browser.py
@@ -41,7 +41,7 @@ class LoginPage(HTMLPage):
 class OpenEDXBrowser(LoginBrowser):
     login = URL('/login', LoginPage)
     login_result = URL("/user_api/v1/account/login_session/", RawPage)
-    threads = URL(r'/courses/(?P<course>.+)/discussion/forum\?ajax=1&page=(?P<page>\d+)&sort_key=date&sort_order=desc', JsonPage)
+    threads = URL(r'/courses/(?P<course>.+)/discussion/forum/\?ajax=1&page=(?P<page>\d+)&sort_key=date&sort_order=desc', JsonPage)
     messages = URL(r'/courses/(?P<course>.+)/discussion/forum/(?P<topic>.+)/threads/(?P<id>.+)\?ajax=1&resp_skip=(?P<skip>\d+)&resp_limit=100', JsonPage)
     thread = URL(r'/courses/(?P<course>.+)/discussion/forum/(?P<topic>.+)/threads/(?P<id>.+)', HTMLPage)
 
-- 
2.9.3




More information about the weboob mailing list