From 1d598252e7a55028e7373a2b8b3f6670a9c73f3e Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 23 May 2020 19:18:50 +0200 Subject: [PATCH] format --- app/api/views/new_custom_alias.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/api/views/new_custom_alias.py b/app/api/views/new_custom_alias.py index 69505dba..55dc55c9 100644 --- a/app/api/views/new_custom_alias.py +++ b/app/api/views/new_custom_alias.py @@ -4,7 +4,12 @@ from flask_cors import cross_origin from itsdangerous import SignatureExpired from app.api.base import api_bp, require_api_auth -from app.api.serializer import serialize_alias_info, get_alias_info, serialize_alias_info_v2, get_alias_info_v2 +from app.api.serializer import ( + serialize_alias_info, + get_alias_info, + serialize_alias_info_v2, + get_alias_info_v2, +) from app.config import MAX_NB_EMAIL_FREE_PLAN from app.dashboard.views.custom_alias import verify_prefix_suffix, signer from app.extensions import db @@ -170,4 +175,7 @@ def new_custom_alias_v2(): AliasUsedOn.create(alias_id=alias.id, hostname=hostname, user_id=alias.user_id) db.session.commit() - return jsonify(alias=full_alias, **serialize_alias_info_v2(get_alias_info_v2(alias))), 201 + return ( + jsonify(alias=full_alias, **serialize_alias_info_v2(get_alias_info_v2(alias))), + 201, + )