Fix regression introduced by commit simplifying set comprehensions

This commit is contained in:
Kovid Goyal 2025-02-02 18:14:50 +05:30
parent 7fff311357
commit 1cd3a6c54e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -37,7 +37,7 @@ class UserDictionary:
def __init__(self, **kwargs):
self.name = kwargs['name']
self.is_active = kwargs['is_active']
self.words = set(kwargs['words'])
self.words = set(map(tuple, kwargs['words']))
def serialize(self):
return {'name':self.name, 'is_active': self.is_active, 'words': list(self.words)}