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 82c0c19 Update sqlite.py, use new_data that we just made for a reason
82c0c19 is described below
commit 82c0c1932f325838859a5d3b912179c207fe36ed
Author: Daniel Gruno <[email protected]>
AuthorDate: Wed Feb 26 11:58:47 2025 +0100
Update sqlite.py, use new_data that we just made for a reason
---
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 fe2167b..0991b80 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", issueData, id=issueID, election=electionID)
+ self.DB.db.update("issues", new_data, id=issueID, election=electionID)
def issue_list(self, election):
"List all issues in an election"