fix flake8 standard problems

This commit is contained in:
Beichi-CHs committed 2021-11-18 12:56:16 +08:00
1 parent 3754fa2542
commit d4b3a42f94
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ class GenerateUserAPI(APIView):
raw_data = f.read()
os.remove(file_path)
response = HttpResponse(raw_data)
response["Content-Disposition"] = f"attachment; filename=users.xlsx"
response["Content-Disposition"] = "attachment; filename=users.xlsx"
response["Content-Type"] = "application/xlsx"
return response
+1 -1
View File
@@ -305,7 +305,7 @@ class ApplyResetPasswordAPI(APIView):
send_email_async.send(from_name=SysOptions.website_name_shortcut,
to_email=user.email,
to_name=user.username,
subject=f"Reset your password",
subject="Reset your password",
content=email_html)
return self.success("Succeeded")