This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 2c40f86  Update sqlite.py, pickle issue_data before updating it in db
2c40f86 is described below

commit 2c40f86195b425cf9bff6759ab5bb4f0b7f6f79b
Author: Daniel Gruno <[email protected]>
AuthorDate: Thu Feb 27 18:38:54 2025 +0100

    Update sqlite.py, pickle issue_data before updating it in db
---
 pysteve/lib/backends/sqlite.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pysteve/lib/backends/sqlite.py b/pysteve/lib/backends/sqlite.py
index 0991b80..ce99bc4 100644
--- a/pysteve/lib/backends/sqlite.py
+++ b/pysteve/lib/backends/sqlite.py
@@ -186,7 +186,7 @@ class SQLiteBackend:
         # Make a clean issue document that only has the sqlite-defined fields 
in it
         issue_fields = ("id", "election", "title", "description", "type", 
"candidates", "seconds", "nominatedby")
         new_data = {k:v for k,v in issueData.items() if k in issue_fields}
-        self.DB.db.update("issues", new_data, id=issueID, election=electionID)
+        self.DB.db.update("issues", pickle(new_data), id=issueID, 
election=electionID)
 
     def issue_list(self, election):
         "List all issues in an election"

Reply via email to