From 11dd02d3c7f96dc452cacb99694f89b0c2af2952 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sun, 16 Jan 2022 18:29:20 +0100 Subject: [PATCH] Change days have a value of 0.5 instead of 2 --- scrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape.py b/scrape.py index a138606..841dd69 100644 --- a/scrape.py +++ b/scrape.py @@ -18,12 +18,12 @@ DATA_URL = ( ) FROM = 0 TO = 2000 -STATUS_MAPPING = {"DayF": 0, "DayB": 1, "DayFB": 2, "DayBF": 2} +STATUS_MAPPING = {"DayF": 0, "DayB": 1, "DayFB": 0.5, "DayBF": 0.5} class Availability(BaseModel): date: datetime - status: int + status: float class Entry(BaseModel):