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 86e90cd  list_elections returns a list of IDs, not the entire base data
86e90cd is described below

commit 86e90cd09f55889e326f55b532230195dae6fba9
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Jan 26 16:55:01 2025 +0100

    list_elections returns a list of IDs, not the entire base data
---
 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 ad34f28..f03889b 100644
--- a/pysteve/lib/backends/sqlite.py
+++ b/pysteve/lib/backends/sqlite.py
@@ -193,7 +193,7 @@ class SQLiteBackend:
 
     def election_list(self):
         "List all elections"
-        elections = [x for x in self.DB.db.fetch("elections", limit=None)]
+        elections = [x['id'] for x in self.DB.db.fetch("elections", 
limit=None)]
         return elections
 
     def vote(self, electionID, issueID, uid, vote, vhash=None):

Reply via email to