This is an automated email from the ASF dual-hosted git repository.
gstein 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 93f9864 fix is_closed()
93f9864 is described below
commit 93f986477f8af05f41b0c3056ebb36d25d5c1375
Author: Greg Stein <[email protected]>
AuthorDate: Mon May 30 22:10:24 2022 -0500
fix is_closed()
---
v3/steve/election.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/v3/steve/election.py b/v3/steve/election.py
index d2c2125..8c8c255 100644
--- a/v3/steve/election.py
+++ b/v3/steve/election.py
@@ -317,9 +317,7 @@ class Election:
def is_closed(self):
"Has this Election been closed?"
md = self.q_metadata.first_row()
- return (md.salt is None
- and md.opened_key is None
- and md.closed == 1)
+ return md.closed == 1
def new_eid():