79796542

Date: 2025-10-22 08:19:52
Score: 1
Natty:
Report link

I had a similar issue with page routing. Not sure if it will help but I had to chain the if statements together with elif. In fact, I ended up using match case available in the latest version of python. See image below

        if page.route == create.route: 
            page.views.append(create)
        elif page.route == login.route: 
            page.views.append(login)
        elif page.route == reset_password.route: 
            page.views.append(reset_password)
        elif page.route == update_password.route: 
            page.views.append(update_password)
        elif page.route == main_view.route:
            page.views.append(main_view)

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user31733187