mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:13:40 +02:00
...
This commit is contained in:
parent
057c141840
commit
80f311a6d0
1 changed files with 3 additions and 5 deletions
|
|
@ -114,12 +114,10 @@ def clear(self):
|
|||
self.overflow_storage = {}
|
||||
self.has_overflow = False
|
||||
|
||||
_local_storage = None
|
||||
def local_storage():
|
||||
nonlocal _local_storage
|
||||
if not _local_storage:
|
||||
_local_storage = SessionData('calibre-local-')
|
||||
return _local_storage
|
||||
if not local_storage.storage:
|
||||
local_storage.storage = SessionData('calibre-local-')
|
||||
return local_storage.storage
|
||||
|
||||
class UserSessionData(SessionData):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue