Skip to content

Commit

Permalink
right.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 28, 2023
1 parent 774b285 commit 99145e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ <h3 class="pt-1 mt-1 mb-4 display-6 lh-1 fw-bold">8 events</h3>
<div class="card card-cover h-100 overflow-hidden text-bg-dark rounded-4 shadow-lg success">
<div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1">
<div class="display-6 fw-bold">KPI3</div>
<h3 class="pt-1 mt-1 mb-4 display-6 lh-1 fw-bold">1774 early-career students</h3>
<div class="pt-1 mt-1 mb-4 display-5 lh-1 fw-bold">273%</div>
<h3 class="pt-1 mt-1 mb-4 display-6 lh-1 fw-bold">4242 early-career students</h3>
<div class="pt-1 mt-1 mb-4 display-5 lh-1 fw-bold">653%</div>

<ul class="d-flex list-unstyled mt-auto">
<li class="d-flex align-items-center me-3">
Expand All @@ -125,8 +125,8 @@ <h3 class="pt-1 mt-1 mb-4 display-6 lh-1 fw-bold">1774 early-career students</h3
<div class="card card-cover h-100 overflow-hidden text-bg-dark rounded-4 shadow-lg success">
<div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1">
<div class="display-6 fw-bold">KPI4</div>
<h3 class="pt-1 mt-1 mb-4 display-6 lh-1 fw-bold">1260 later-career learners</h3>
<div class="pt-1 mt-1 mb-4 display-5 lh-1 fw-bold">700%</div>
<h3 class="pt-1 mt-1 mb-4 display-6 lh-1 fw-bold">2823 later-career learners</h3>
<div class="pt-1 mt-1 mb-4 display-5 lh-1 fw-bold">1568%</div>
<ul class="d-flex list-unstyled mt-auto">
<li class="d-flex align-items-center me-3">
<small>Number of later-career learners trained during the lifetime of the project</small>
Expand Down
4 changes: 2 additions & 2 deletions kpis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ KPI2:
unit: events
KPI3:
goal: 650
progress: 1774
progress: 4242
title: Number of MSc/PhD students trained during the lifetime of the project
unit: students
KPI4:
goal: 180
progress: 1260
progress: 2823
title: Number of later-career learners trained during the lifetime of the project
unit: learners
KPI5:
Expand Down
4 changes: 2 additions & 2 deletions update-kpis.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@

if 'demographics' in data:
if 'early' in data['demographics']['stage']:
kpi3 = data['demographics']['stage']['early']
kpi3 += data['demographics']['stage']['early']
else:
kpi3 += data['demographics']['stage']['bsc'] + data['demographics']['stage']['msc'] + data['demographics']['stage']['phd']

if 'late' in data['demographics']['stage']:
kpi4 = data['demographics']['stage']['late']
kpi4 += data['demographics']['stage']['late']
else:
kpi4 += data['demographics']['stage']['faculty'] + data['demographics']['stage']['post-doc'] + data['demographics']['stage']['researcher']

Expand Down

0 comments on commit 99145e7

Please sign in to comment.