File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
infrastructure/fastapi/schemas Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 99
1010# Add world as a country code, default value of the carbon footprint computation framework
1111country_codes = [country .alpha_3 for country in pycountry .countries ] + ["WOR" ]
12- ProviderCarbonFootprintZone = StrEnum ("ProviderCarbonFootprintZone" , ** {str (code ).upper (): str (code ) for code in sorted (set (country_codes ))})
12+ ProviderCarbonFootprintZone = StrEnum ("ProviderCarbonFootprintZone" , {str (code ).upper (): str (code ) for code in sorted (set (country_codes ))})
1313
1414
1515class ProviderType (StrEnum ):
Original file line number Diff line number Diff line change 11from typing import Annotated , Literal
22
3- from pydantic import Field , model_validator
4- from pydantic .v1 import StringConstraints
3+ from pydantic import Field , StringConstraints , model_validator
54
65from api .domain .provider .entities import ProviderCarbonFootprintZone , ProviderType
76from api .schemas import BaseModel
Original file line number Diff line number Diff line change 1111from api .schemas .chunks import ChunkMetadata
1212from api .utils .exceptions import FileSizeLimitExceededException
1313
14- PresetSeparators = StrEnum ("PresetSeparators" , {** { m .name : m .value for m in Language } })
14+ PresetSeparators = StrEnum ("PresetSeparators" , {m .name : m .value for m in Language })
1515
1616
1717class Document (BaseModel ):
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ def _status_renderable() -> Table:
374374
375375 def _startup_renderable () -> Group :
376376 status_block = _status_renderable ()
377- log_lines = recent_lines [- 6 :]
377+ log_lines = recent_lines [- 20 :]
378378 logs_block : RenderableType
379379 if log_lines :
380380 logs_block = Group (* [Text (f" { line } " , style = "dim" ) for line in log_lines ])
You can’t perform that action at this time.
0 commit comments