refactor: seperate module for hackathon

This commit is contained in:
pateljannat
2021-03-04 20:11:18 +05:30
parent acea59767d
commit 8b5cd8e6c6
50 changed files with 249 additions and 79 deletions

View File

@@ -8,8 +8,6 @@ def get_context(context):
topic_name = get_queryparam("topic", '/courses?course=' + course_name)
context.topic = get_topic(course_name, topic_name)
print("topic", context.topic)
def get_queryparam(name, redirect_when_not_found):
try:
return frappe.form_dict[name]