fix: redirects and urls

This commit is contained in:
pateljannat
2021-06-22 10:45:07 +05:30
parent 3384f974e5
commit ecfcc8a2f7
5 changed files with 15 additions and 37 deletions

View File

@@ -26,8 +26,8 @@ def get_common_context(context):
context.members = course.get_mentors(membership.batch) + course.get_students(membership.batch)
context.member_count = len(context.members)
context.course.query_parameter = "?batch=" + batch.name if batch else ""
print(context.membership)
context.course.query_parameter = "?batch=" + membership.batch if membership and membership.batch else ""
context.livecode_url = get_livecode_url()
def get_livecode_url():