fix: correct mapped_column parameter order for NM and NN columns

This commit is contained in:
Dwindi Ramadhana
2026-03-22 07:56:32 +07:00
parent 282425844c
commit 6255e22ec9

View File

@@ -106,14 +106,14 @@ class Session(Base):
Float, nullable=False, default=0.0, comment="Total weight earned" Float, nullable=False, default=0.0, comment="Total weight earned"
) )
NM: Mapped[Union[int, None]] = mapped_column( NM: Mapped[Union[int, None]] = mapped_column(
'"NM"',
Integer, Integer,
name="NM",
nullable=True, nullable=True,
comment="Nilai Mentah (raw score) [0, 1000]", comment="Nilai Mentah (raw score) [0, 1000]",
) )
NN: Mapped[Union[int, None]] = mapped_column( NN: Mapped[Union[int, None]] = mapped_column(
'"NN"',
Integer, Integer,
name="NN",
nullable=True, nullable=True,
comment="Nilai Nasional (normalized score) [0, 1000]", comment="Nilai Nasional (normalized score) [0, 1000]",
) )