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

commit f57b413b6cc1897c0d9988455924b599f9f85330
Author: Greg Stein <[email protected]>
AuthorDate: Sat Dec 20 02:39:44 2025 -0600

    tweak: this is a POST endpoint. use the .create() class method
---
 v3/server/pages.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/v3/server/pages.py b/v3/server/pages.py
index 7991562..48ad695 100644
--- a/v3/server/pages.py
+++ b/v3/server/pages.py
@@ -278,7 +278,7 @@ async def manage_page(election):
     return result
 
 
[email protected]('/do-create')
[email protected]('/do-create-election')
 @asfquart.auth.require({R.pmc_member})  ### need general solution
 async def do_create_endpoint():
     "Create a new Election."
@@ -290,7 +290,7 @@ async def do_create_endpoint():
     form = edict(await quart.request.form)
 
     # Create the Election.
-    election = steve.election.Election(DB_FNAME, form.title, result.uid)
+    election = steve.election.Election.create(DB_FNAME, form.title, result.uid)
 
     _LOGGER.info(f'User[U:{result.uid}] created election[E:{election.eid}];'
                  f' title: "{form.title}"')

Reply via email to