Correction enumérations
This commit is contained in:
@ -5,7 +5,7 @@ from typing import List
|
||||
from sqlalchemy import Boolean, Date, Enum, ForeignKey, Integer, String
|
||||
from sqlalchemy.orm import mapped_column, Mapped, relationship
|
||||
|
||||
from nupes.models import Base, Region, Departement, Commune, Circonscription
|
||||
from nupes.models import Base, Region, Departement, Commune, Circonscription, Genre
|
||||
|
||||
|
||||
class BlocLegislatives2024(Base):
|
||||
@ -46,10 +46,6 @@ class NuanceLegislatives2024(Base):
|
||||
|
||||
|
||||
class CandidatLegislatives2024(Base):
|
||||
class Genre(enum.Enum):
|
||||
MASCULIN = "M"
|
||||
FEMININ = "F"
|
||||
|
||||
__tablename__ = "legislatives_2024_candidat"
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
|
Reference in New Issue
Block a user