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 cc507d7  OF: typo, id should be eid here.
cc507d7 is described below

commit cc507d7ddabb558f1a1063bd5fd3036fbd25abd9
Author: Daniel Gruno <[email protected]>
AuthorDate: Fri Feb 21 17:23:43 2025 +0100

    OF: typo, id should be eid here.
---
 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 a9e0e36..f05af00 100644
--- a/pysteve/lib/backends/sqlite.py
+++ b/pysteve/lib/backends/sqlite.py
@@ -270,7 +270,7 @@ class SQLiteBackend:
         eid = constants.hexdigest(election + ":" + issue + ":" + uid)
         vhash = constants.hexdigest(constants.hexdigest(election + ":" + uid) 
+ issue)
         try:
-            return self.DB.db.fetchone("votes", id=eid) or 
self.DB.db.fetchone("votes", id=vhash)
+            return self.DB.db.fetchone("votes", eid=eid) or 
self.DB.db.fetchone("votes", eid=vhash)
         except:
             return False
 

Reply via email to