Skip to content

Commit

Permalink
feat(api): Add the possibility to save results from external source
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatelot committed Dec 19, 2024
1 parent 292a466 commit c770398
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/ecoindex/database/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ class ApiEcoindex(SQLModel, Result, table=True):
"at the time of the analysis for a given version."
),
)
source: str | None = Field(
default="ecoindex.fr",
title="Source of the analysis",
description="Source of the analysis",
)


ApiEcoindexes = list[ApiEcoindex]


class PageApiEcoindexes(BaseModel):
Expand Down

0 comments on commit c770398

Please sign in to comment.