mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression introduced by commit simplifying set comprehensions
This commit is contained in:
parent
7fff311357
commit
1cd3a6c54e
@ -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)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user