style(backend): applique ruff format au modele data
Backend / Lint, typage et tests (push) Successful in 1m7s
Backend / Lint, typage et tests (push) Successful in 1m7s
La cible make check ne lance que ruff check ; la CI lance en plus ruff format --check, qui refusait la contrainte unique repliee.
This commit is contained in:
@@ -159,9 +159,7 @@ class Prediction(Base):
|
|||||||
class Alert(Base):
|
class Alert(Base):
|
||||||
__tablename__ = "alert"
|
__tablename__ = "alert"
|
||||||
__table_args__ = (
|
__table_args__ = (
|
||||||
UniqueConstraint(
|
UniqueConstraint("source", "site_id", "source_alert_id", name="uq_alert_source_reference"),
|
||||||
"source", "site_id", "source_alert_id", name="uq_alert_source_reference"
|
|
||||||
),
|
|
||||||
Index("ix_alert_site_timestamp", "site_id", "timestamp"),
|
Index("ix_alert_site_timestamp", "site_id", "timestamp"),
|
||||||
ForeignKeyConstraint(
|
ForeignKeyConstraint(
|
||||||
["prediction_id", "site_id"],
|
["prediction_id", "site_id"],
|
||||||
|
|||||||
Reference in New Issue
Block a user