Spaces:
Running
Running
zach
Add database for persisting votes, and functions to write to db, update submit_voting_results function to write results to DB
20cccb6
from .crud import create_vote | |
from .database import Base, SessionLocal, engine | |
from .models import VoteResult | |
__all__ = [ | |
"Base", | |
"SessionLocal", | |
"VoteResult", | |
"create_vote", | |
"engine" | |
] | |