mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Fix get_huddle handling of id_list.
(imported from commit 0fe1ee15b2fc6b3bef98ac47f1094b89e776c751)
This commit is contained in:
@@ -126,7 +126,8 @@ class Huddle(models.Model):
|
||||
huddle_hash = models.CharField(max_length=40)
|
||||
|
||||
def get_huddle(id_list):
|
||||
hash_key = ",".join([str(x) for x in sorted(list(set(id_list)))])
|
||||
id_list = sorted(set(id_list))
|
||||
hash_key = ",".join([str(x) for x in id_list])
|
||||
huddle_hash = hashlib.sha1(hash_key).hexdigest()
|
||||
if Huddle.objects.filter(huddle_hash=huddle_hash):
|
||||
return Huddle.objects.get(huddle_hash=huddle_hash)
|
||||
|
Reference in New Issue
Block a user