File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def latency(self) -> float | None:
95
95
96
96
@classmethod
97
97
@field_validator ('score' , mode = 'before' )
98
- def validate_score (cls , value : int ) -> int | None :
98
+ def validate_score (cls , value : float ) -> int | None :
99
99
if value is not None :
100
100
value = round (value )
101
101
debug (f" score: { value } " )
@@ -107,7 +107,7 @@ def debug_output(self, validation_info) -> 'MirrorStatusEntryV3':
107
107
self ._hostname , * port = urllib .parse .urlparse (self .url ).netloc .split (':' , 1 )
108
108
self ._port = int (port [0 ]) if port and len (port ) >= 1 else None
109
109
110
- debug (f"Loaded mirror { self ._hostname } " + (f" with current score of { round ( self .score ) } " if self .score else '' ))
110
+ debug (f"Loaded mirror { self ._hostname } " + (f" with current score of { self .score } " if self .score else '' ))
111
111
return self
112
112
113
113
You can’t perform that action at this time.
0 commit comments