diff --git a/community/hooks.py b/community/hooks.py index 6b1fb371..1332aebd 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -136,7 +136,6 @@ primary_rules = [ {"from_route": "/sketches/", "to_route": "sketches/sketch"}, {"from_route": "/courses/", "to_route": "courses/course"}, {"from_route": "/courses//", "to_route": "courses/topic"}, - {"from_route": "/hackathons", "to_route": "hackathons"}, {"from_route": "/hackathons/", "to_route": "hackathons/hackathon"}, {"from_route": "/hackathons//", "to_route": "hackathons/project"}, {"from_route": "/dashboard", "to_route": ""}, @@ -164,7 +163,8 @@ whitelist = [ "/dashboard", "/join-request" "/add-a-new-batch", - "/new-sign-up" + "/new-sign-up", + "/message" ] whitelist_rules = [{"from_route": p, "to_route": p[1:]} for p in whitelist] diff --git a/community/lms/doctype/invite_request/invite_request.py b/community/lms/doctype/invite_request/invite_request.py index 922ec89b..ce977f59 100644 --- a/community/lms/doctype/invite_request/invite_request.py +++ b/community/lms/doctype/invite_request/invite_request.py @@ -75,4 +75,4 @@ def update_invite(data): doc.status = "Registered" doc.save(ignore_permissions=True) - return "OK" \ No newline at end of file + return "OK" diff --git a/community/lms/doctype/lms_sketch/lms_sketch.py b/community/lms/doctype/lms_sketch/lms_sketch.py index 5c665305..52275a6d 100644 --- a/community/lms/doctype/lms_sketch/lms_sketch.py +++ b/community/lms/doctype/lms_sketch/lms_sketch.py @@ -55,7 +55,7 @@ class LMSSketch(Document): def get_recent_sketches(limit=100, owner=None): """Returns the recent sketches. """ - filters = {} + filters = {} if owner: filters = {"owner": owner} sketches = frappe.get_all( diff --git a/license.txt b/license.txt index 2fdf7c7c..c013ae70 100644 --- a/license.txt +++ b/license.txt @@ -1 +1 @@ -License: MIT \ No newline at end of file +License: AGPL