fix: regex in page renderer

This commit is contained in:
Jannat Patel
2021-09-20 15:12:23 +05:30
parent 1dbbf7c769
commit 29fe75d807
2 changed files with 2 additions and 5 deletions

View File

@@ -10,7 +10,6 @@ def get_context(context):
except KeyError:
username = frappe.db.get_value("User", frappe.session.user, ["username"])
if username:
print(username)
frappe.local.flags.redirect_location = get_profile_url_prefix() + urlencode({"username": username})
raise frappe.Redirect
try:
@@ -18,7 +17,6 @@ def get_context(context):
except:
context.template = "www/404.html"
return
print(context.member)
context.profile_tabs = get_profile_tabs(context.member)
def get_profile_tabs(user):