Fix retrieving of previous results
This commit is contained in:
@@ -254,9 +254,8 @@ def get_badge_json_url(config: Config) -> str:
|
|||||||
|
|
||||||
def get_previous_coverage_rate(config: Config) -> Optional[float]:
|
def get_previous_coverage_rate(config: Config) -> Optional[float]:
|
||||||
try:
|
try:
|
||||||
return float(
|
response = requests.get(get_badge_json_url(config=config))
|
||||||
requests.get(get_badge_json_url(config=config)).json()["value"][:-1]
|
return float(response.json()["message"][:-1]) / 100
|
||||||
)
|
|
||||||
except Exception:
|
except Exception:
|
||||||
print("Previous coverage results not found, cannot report on evolution.")
|
print("Previous coverage results not found, cannot report on evolution.")
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user