Skip to content

Commit edd9c16

Browse files
authored
Enhancement: Add minimum reference count to Contest model and update … (#144)
…SubmitArticleModal layout - Added 'min_reference_count' attribute to the Contest model for tracking minimum reference requirements. - Changed SubmitArticleModal to use a fullscreen layout for improved user experience.
2 parents 7230499 + 426ff21 commit edd9c16

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"""add refrence count
2+
3+
Revision ID: ea8b4c071516
4+
Revises: ed3dabd7833f
5+
Create Date: 2026-01-14 17:20:16.404915
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision = 'ea8b4c071516'
14+
down_revision = 'ed3dabd7833f'
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
def upgrade() -> None:
20+
# ### commands auto generated by Alembic - please adjust! ###
21+
pass
22+
# ### end Alembic commands ###
23+
24+
25+
def downgrade() -> None:
26+
# ### commands auto generated by Alembic - please adjust! ###
27+
pass
28+
# ### end Alembic commands ###
29+

backend/app/models/contest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ def to_dict(self):
729729
'marks_setting_rejected': self.marks_setting_rejected,
730730
'allowed_submission_type': self.allowed_submission_type,
731731
'min_byte_count': self.min_byte_count,
732+
'min_reference_count': self.min_reference_count, # Minimum reference count requirement
732733
'categories': self.get_categories(),
733734
'jury_members': self.get_jury_members(),
734735
'template_link': self.template_link, # Template link for contest (optional)

frontend/src/components/SubmitArticleModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="modal fade" id="submitArticleModal" tabindex="-1">
3-
<div class="modal-dialog modal-dialog-centered">
3+
<div class="modal-dialog modal-fullscreen">
44
<div class="modal-content">
55
<!-- Modal Header -->
66
<div class="modal-header">

0 commit comments

Comments
 (0)