Skip to content

Commit

Permalink
Fix a broken DB query in a migration
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Oct 10, 2024
1 parent 8ff614c commit 4a8c3e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ReadableBy(enum.Enum):


class WriteableBy(enum.Enum):
members = "members"
authority = "authority"


class User(Base):
Expand Down Expand Up @@ -60,7 +60,7 @@ def upgrade():
select(Group)
.where(Group.joinable_by == None)
.where(Group.readable_by == ReadableBy.world)
.where(Group.writeable_by == WriteableBy.members)
.where(Group.writeable_by == WriteableBy.authority)
)

results = defaultdict(lambda: 0)
Expand Down

0 comments on commit 4a8c3e1

Please sign in to comment.