Skip to content

Commit

Permalink
chore: show only Accepted applications in the election page
Browse files Browse the repository at this point in the history
  • Loading branch information
harshtandiya committed Oct 24, 2024
1 parent dace4fc commit 7998756
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ballot/api/candidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_all_candidates(election: str):

candidates = frappe.db.get_all(
"Election Candidate Application",
{"election": election},
{"election": election, "status": "Accepted"},
["full_name", "designation", "organization", "photo", "submission_meta", "name"],
page_length=999,
order_by="creation",
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/pages/election/ElectionHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
<h1 class="text-3xl font-bold">
{{ election.data.title }}
</h1>
<div v-html="election.data.description"></div>
<div
class="text-base &>*[!p-0]"
v-html="election.data.description"
></div>
</div>
<hr />
<div class="w-full grid grid-cols-1 md:grid-cols-2">
Expand Down

0 comments on commit 7998756

Please sign in to comment.