Skip to content

Commit

Permalink
Build meeting hash from string and not from enum obj
Browse files Browse the repository at this point in the history
  • Loading branch information
LoanR committed May 16, 2024
1 parent eeaac8a commit 515c520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/b3desk/models/meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def fake_id(self):
del self._fake_id

def get_hash(self, role: Role):
s = f"{self.meetingID}|{self.attendeePW}|{self.name}|{role}"
s = f"{self.meetingID}|{self.attendeePW}|{self.name}|{role.value}"
return hashlib.sha1(s.encode("utf-8")).hexdigest()

def is_running(self):
Expand Down

0 comments on commit 515c520

Please sign in to comment.