fix: use quote=True instead of manual quoting for NM/NN columns

This commit is contained in:
Dwindi Ramadhana
2026-03-22 09:26:27 +07:00
parent ec9988b185
commit 92099f0f78

View File

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