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

commit acd08b5ed08c0e67425bb7da9fe3ae484d7a2606
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Jan 26 16:52:33 2025 +0100

    voter_get_uid should return the uid, not the entire document
    
    also unpickle it, in case..
---
 pysteve/lib/backends/sqlite.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pysteve/lib/backends/sqlite.py b/pysteve/lib/backends/sqlite.py
index ba1510a..ad34f28 100644
--- a/pysteve/lib/backends/sqlite.py
+++ b/pysteve/lib/backends/sqlite.py
@@ -223,12 +223,12 @@ class SQLiteBackend:
 
         res = self.DB.db.fetchone("voters", id=votekey)
         if res:
-            return res
+            return unpickle(res)['uid']
 
         # Try looking for hash key
         res = self.DB.db.fetchone("voters", hash=votekey)
         if res:
-            return res
+            return unpickle(res)['uid']
 
         return False  # No ballot found.
 

Reply via email to