patx/pickledb
fix asave method
Commit f065f82 · patx · 2025-02-08T22:46:05-05:00
Comments
No comments yet.
Diff
diff --git a/pickledb.py b/pickledb.py
index 0b2c426..83a7195 100644
--- a/pickledb.py
+++ b/pickledb.py
@@ -269,7 +269,7 @@ class AsyncPickleDB(PickleDB):
async with self._lock:
try:
async with aiofiles.open(temp_location, "wb") as temp_file:
- await temp_file.write(orjson.dumps(self.db, option=option))
+ await temp_file.write(orjson.dumps(self.db))
os.replace(temp_location, self.location)
return True
except Exception as e:
diff --git a/setup.py b/setup.py
index f54eaad..2cbccb6 100644
--- a/setup.py
+++ b/setup.py
@@ -47,14 +47,14 @@ Key Improvements in Version 1.0+
* Streamlined API: Removed legacy methods (e.g., `ladd`, `dmerge`) in favor of native Python operations.
* Unified Handling of Data Types: Treats all Python-native types (lists, dicts, etc.) as first-class citizens.
* Explicit Saves: The `auto_save` feature was removed to provide users greater control and optimize performance.
-* Added fully built in async class for use with event based applications.
+* Added built in async class for use with event based applications.
"""
from distutils.core import setup
setup(name="pickleDB",
- version="1.3",
+ version="1.3.2",
description="A lightweight and simple database using json.",
long_description=__doc__,
author="Harrison Erd",