瀏覽代碼

Fix formatting

Son NK 5 年之前
父節點
當前提交
ca6c32f951
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      app/api/views/new_custom_alias.py
  2. 3 1
      app/auth/views/activate.py
  3. 1 3
      app/auth/views/reset_password.py

+ 1 - 1
app/api/views/new_custom_alias.py

@@ -31,7 +31,7 @@ def new_custom_alias():
         return (
             jsonify(
                 error="You have reached the limitation of a free account with the maximum of "
-                      "3 custom aliases, please upgrade your plan to create more custom aliases"
+                "3 custom aliases, please upgrade your plan to create more custom aliases"
             ),
             400,
         )

+ 3 - 1
app/auth/views/activate.py

@@ -22,7 +22,9 @@ def activate():
 
     if not activation_code:
         return (
-            render_template("auth/activate.html", error="Activation code cannot be found"),
+            render_template(
+                "auth/activate.html", error="Activation code cannot be found"
+            ),
             400,
         )
 

+ 1 - 3
app/auth/views/reset_password.py

@@ -33,9 +33,7 @@ def reset_password():
         return render_template("auth/reset_password.html", form=form, error=error)
 
     if reset_password_code.is_expired():
-        error = (
-            "The link has been already expired. Please make a new request of the reset password link"
-        )
+        error = "The link has been already expired. Please make a new request of the reset password link"
         return render_template("auth/reset_password.html", form=form, error=error)
 
     if form.validate_on_submit():