File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/postgres-database/src/simcore_postgres_database Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- """ Free functions, repository pattern, errors and data structures for the users resource
2- i.e. models.users main table and all its relations
1+ """Free functions, repository pattern, errors and data structures for the users resource
2+ i.e. models.users main table and all its relations
33"""
44
55import re
@@ -65,7 +65,7 @@ async def new_user(
6565 user_id = await conn .scalar (
6666 users .insert ().values (** data ).returning (users .c .id )
6767 )
68- except UniqueViolation : # noqa: PERF203
68+ except UniqueViolation :
6969 data ["name" ] = generate_alternative_username (data ["name" ])
7070
7171 result = await conn .execute (
@@ -78,7 +78,7 @@ async def new_user(
7878 ).where (users .c .id == user_id )
7979 )
8080 row = await result .first ()
81- assert row # nosec
81+ assert isinstance ( row , RowProxy ) # nosec
8282 return row
8383
8484 @staticmethod
You can’t perform that action at this time.
0 commit comments