|
@@ -272,7 +272,7 @@ class UserApi(object):
|
272
|
272
|
)
|
273
|
273
|
return user
|
274
|
274
|
|
275
|
|
- def _check_email(self, email) -> bool:
|
|
275
|
+ def _check_email(self, email: str) -> bool:
|
276
|
276
|
"""
|
277
|
277
|
Check if email is completely ok to be used in user db table
|
278
|
278
|
"""
|
|
@@ -291,7 +291,7 @@ class UserApi(object):
|
291
|
291
|
"""
|
292
|
292
|
Verify if given email does not already exist in db
|
293
|
293
|
"""
|
294
|
|
- return self._session.query(User.email).filter(User.email==email).all() != [] # nopep8
|
|
294
|
+ return self._session.query(User.email).filter(User.email==email).count() != 0 # nopep8
|
295
|
295
|
|
296
|
296
|
def _check_email_correctness(self, email: str) -> bool:
|
297
|
297
|
"""
|