Skip to content

Commit

Permalink
fix: for compatibility with sqlalchemy >= 2
Browse files Browse the repository at this point in the history
* the problem is on test_members_services.py. if test_add_denied runs it
  creates a situation where the curator role with number 3 is converted to
  string. which is the reason that the needs can't find an intersection
  because the need in the identity has still an int 3.
  • Loading branch information
utnapischtim committed Nov 15, 2024
1 parent 27bb0a6 commit 19eb31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_communities/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class CommunitySelfMember(Generator):
def needs(self, member=None, **kwargs):
"""Enabling needs."""
if member is not None and member.user_id is not None:
return [UserNeed(member.user_id)]
return [UserNeed(int(member.user_id))]
return []

def query_filter(self, identity=None, **kwargs):
Expand Down

0 comments on commit 19eb31d

Please sign in to comment.