Skip to content

Commit

Permalink
calculate rating average
Browse files Browse the repository at this point in the history
  • Loading branch information
geritwagner committed Jan 23, 2025
1 parent 1420d96 commit bb6e654
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions _data/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semesters": [
{ "ID": "WiSe 2024/25", "participants": 6, "evaluation_average": 5.0 },
{ "ID": "SuSe 2024", "participants": 9, "evaluation_average": 5.0 }
]
}
12 changes: 11 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ permalink: /

<br>

{% assign total_average = 0 %}
{% assign count = 0 %}

{% for semester in site.data.semesters.semesters %}
{% assign total_average = total_average | plus: semester.evaluation_average %}
{% assign count = count | plus: 1 %}
{% endfor %}

{% assign average_of_averages = total_average | divided_by: count %}

![Course Status](https://img.shields.io/badge/Current%20course-Winter%20semester%202024/25-yellow)
![Course Status](https://img.shields.io/badge/Upcoming%20course-Summer%20semester%202025-green)<br>
[![Level](https://img.shields.io/badge/Level-Master%20|%20PhD-blue)](https://digital-work-lab.github.io/literature-review-seminar/docs/syllabus.html)
Expand All @@ -18,7 +28,7 @@ permalink: /
[![Topic](https://img.shields.io/badge/Topics-Open%20topic%20&%20Literature%20review%20methods-blue)](https://digital-work-lab.github.io/literature-review-seminar/docs/syllabus.html)
[![Format](https://img.shields.io/badge/Format-In%20person%20sessions%20&%20individual%20work-blue)](https://digital-work-lab.github.io/digital-work-lecture/docs/syllabus.html)<br>
<!-- ![Offered by: Digital Work at Otto-Friedrich-Universität Bamberg](https://img.shields.io/badge/Offered%20by-%20Digital%20Work%20(Otto--Friedrich--Universit%C3%A4t%20Bamberg)-blue) -->
[![Evaluations](https://img.shields.io/badge/Rating-★★★★★%20(5%20/%205)-yellow)](https://digital-work-lab.github.io/literature-review-seminar/docs/evaluations.html)
[![Evaluations](https://img.shields.io/badge/Rating-★★★★★%20({{ average_of_averages }}%20/%205)-yellow)](https://digital-work-lab.github.io/literature-review-seminar/docs/evaluations.html)
![Completion](https://img.shields.io/badge/Enrollment-9%20students-green)
![License: CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-green.svg)
[![GitHub stars](https://img.shields.io/github/stars/digital-work-lab/literature-review-seminar.svg?style=social&label=Star)](https://github.com/digital-work-lab/literature-review-seminar/stargazers)
Expand Down

0 comments on commit bb6e654

Please sign in to comment.