-
Notifications
You must be signed in to change notification settings - Fork 2
Second Elections PR #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Second Elections PR #105
Changes from 16 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
cd7eee0
add urls.py functions for registration, add empty crud functions, upd…
EarthenSky cad1c90
add election status & getting all elections
EarthenSky 7926e48
add position to application pkey & implement crud
EarthenSky a32f905
add avaliable positions & make it configurable. clean code too
EarthenSky 45ca097
registrations can only be made during the nomination period, and chec…
EarthenSky 822c0dc
add support for nominee info
EarthenSky 51d17a6
update names
EarthenSky 8d99250
fix foreign key bug
p-north d696c2c
fix db null value issue when resetting test database
p-north 3e27c8b
fix sqlalchemy syntax error
p-north 2301abc
add test cases for election endpoints
p-north 9c35788
add mock test data to testDB
p-north c65add3
cleanup endpoint logic
p-north 52d95ef
upgrade alembic head
p-north 159338d
fix ruff linting issues
p-north 893ce1d
fix test file linting
p-north f7a4065
add additional test cases and cleanup endpoints
p-north c7d7904
update endpoint urls
p-north b1e819e
linting fixes
p-north 702025b
code cleanup
p-north 335cb22
minor word corrections
p-north 9ffd823
minor logic tweak
p-north 9a69613
deprecate update_registration endpoints
p-north a2871df
cleanup linting errors
p-north 0b153f2
minor tweaks
p-north 773d094
add back patch registration endpoint and uodate logic
p-north 3560546
update endpoint logic
p-north File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| """elections | ||
|
|
||
| Revision ID: 46d14891e1a9 | ||
| Revises: 243190df5588 | ||
| Create Date: 2025-08-19 21:58:08.035067 | ||
|
|
||
| """ | ||
| from collections.abc import Sequence | ||
| from typing import Union | ||
|
|
||
| import sqlalchemy as sa | ||
|
|
||
| from alembic import op | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision: str = "46d14891e1a9" | ||
| down_revision: str | None = "243190df5588" | ||
| branch_labels: str | Sequence[str] | None = None | ||
| depends_on: str | Sequence[str] | None = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| pass | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| pass | ||
|
p-north marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.