fix asave method

Commit f065f82 · patx · 2025-02-08T22:46:05-05:00

Changeset
f065f825927a215b46cd9891a9b6efff9343ebe1
Parents
934eb4664099009bad2ee99d542458cedb5d92ef

View source at this commit

Comments

No comments yet.

Log in to comment

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",