Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
codeclimate fixes
Tomasz Szymańskid33bc056f518
diff --git a/saleor/account/emails.py b/saleor/account/emails.pyindex 0be60a76f8..74cb787aab 100644--- a/saleor/account/emails.py+++ b/saleor/account/emails.py@@ -15,7 +15,6 @@ def send_user_password_reset_email_with_url(redirect_url, user):_send_password_reset_email_with_url.delay(user.email, redirect_url, user.pk, token)-def send_account_confirmation_email(user):"""Trigger sending an account confirmation email for the given user."""token = default_token_generator.make_token(user)diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.pyindex 4d42ecf607..cfce2775f5 100644--- a/saleor/graphql/account/mutations/base.py+++ b/saleor/graphql/account/mutations/base.py@@ -159,7 +159,8 @@ class ConfirmAccount(BaseMutation):description="A one-time token required to set the password.", required=True)email = graphene.String(- description="E-mail of the user performing account confirmation.", required=True+ description="E-mail of the user performing account confirmation.",+ required=True)class Meta:diff --git a/saleor/graphql/account/schema.py b/saleor/graphql/account/schema.pyindex 323d10bf1c..473203dbed 100644--- a/saleor/graphql/account/schema.py+++ b/saleor/graphql/account/schema.py@@ -20,9 +20,9 @@ from .mutations.account import (AccountUpdateMeta,)from .mutations.base import (+ ConfirmAccount,PasswordChange,RequestPasswordReset,- ConfirmAccount,SetPassword,UserClearMeta,UserUpdateMeta,