Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
svartkanin committed Dec 7, 2024
1 parent f021524 commit 3214ec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion archinstall/lib/models/mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ def latency(self) -> float | None:

return self._latency

@classmethod
@field_validator('score', mode='before')
def validate_score(self, value: int) -> int | None:
def validate_score(cls, value: int) -> int | None:
if value is not None:
value = round(value)
debug(f" score: {value}")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_config_file_parsing(
greeter=GreeterType.Lightdm
),
mirror_config=MirrorConfiguration(
mirror_regions={},
mirror_regions=[],
custom_mirrors=[]
),
network_config=NetworkConfiguration(
Expand Down

0 comments on commit 3214ec6

Please sign in to comment.