File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def latency(self) -> float | None:
9595
9696 @classmethod
9797 @field_validator ('score' , mode = 'before' )
98- def validate_score (cls , value : int ) -> int | None :
98+ def validate_score (cls , value : float ) -> int | None :
9999 if value is not None :
100100 value = round (value )
101101 debug (f" score: { value } " )
@@ -107,7 +107,7 @@ def debug_output(self, validation_info) -> 'MirrorStatusEntryV3':
107107 self ._hostname , * port = urllib .parse .urlparse (self .url ).netloc .split (':' , 1 )
108108 self ._port = int (port [0 ]) if port and len (port ) >= 1 else None
109109
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 '' ))
111111 return self
112112
113113
You can’t perform that action at this time.
0 commit comments