mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
[Python 3] Fixed an issue iterate the keys from the session loaded from
the sqlite.
This commit is contained in:
committed by
Ashesh Vashi
parent
9dd3aeadb5
commit
970e0c3540
@@ -101,7 +101,7 @@ class SqliteSessionStorage(MutableMapping, SessionMixin):
|
|||||||
"""
|
"""
|
||||||
with self._get_conn() as conn:
|
with self._get_conn() as conn:
|
||||||
for row in conn.execute(self._ite_sql):
|
for row in conn.execute(self._ite_sql):
|
||||||
yield loads(str(row[0]))
|
yield loads(dumps(row[0]))
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
"""Returns the number of keys stored in this session.
|
"""Returns the number of keys stored in this session.
|
||||||
|
|||||||
Reference in New Issue
Block a user