diff --git a/delfland/ppo-insight/data.db b/delfland/ppo-insight/data.db index e45f0d6..647b35a 100644 Binary files a/delfland/ppo-insight/data.db and b/delfland/ppo-insight/data.db differ diff --git a/delfland/ppo-insight/ppo_insight.py b/delfland/ppo-insight/ppo_insight.py index 88b8728..836ffd8 100644 --- a/delfland/ppo-insight/ppo_insight.py +++ b/delfland/ppo-insight/ppo_insight.py @@ -242,9 +242,17 @@ def get_raw_data(): raw_data = [dict(zip(columns, row)) for row in rows] for record in raw_data: + if 'Begindatum' in record: record['Begindatum'] = str( pd.to_datetime(record['Begindatum']).date()) + + today = datetime.today() + + begindatum = pd.to_datetime(record['Begindatum']) + record["Overtijd"] = "Ja" if begindatum.date( + ) <= today.date() else "Nee" + return raw_data