pyupgrade in leaner-profile, lti-course-tab, personalized-learner
This commit is contained in:
Awais Qureshi
2021-03-11 14:57:20 +05:00
parent 435f2a3f79
commit ace90d5345
4 changed files with 21 additions and 22 deletions

View File

@@ -46,7 +46,7 @@ def learner_profile(request, username):
GET /account/profile
"""
if should_redirect_to_profile_microfrontend():
profile_microfrontend_url = "{}{}".format(settings.PROFILE_MICROFRONTEND_URL, username)
profile_microfrontend_url = f"{settings.PROFILE_MICROFRONTEND_URL}{username}"
return redirect(profile_microfrontend_url)
try: