Skip to content

Commit c770398

Browse files
committed
feat(api): Add the possibility to save results from external source
1 parent 292a466 commit c770398

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

components/ecoindex/database/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ class ApiEcoindex(SQLModel, Result, table=True):
4141
"at the time of the analysis for a given version."
4242
),
4343
)
44+
source: str | None = Field(
45+
default="ecoindex.fr",
46+
title="Source of the analysis",
47+
description="Source of the analysis",
48+
)
49+
50+
51+
ApiEcoindexes = list[ApiEcoindex]
4452

4553

4654
class PageApiEcoindexes(BaseModel):

0 commit comments

Comments
 (0)