TheNailDev / openmensa-bielefeld

OpenMensa parser for Studierendenwerk Bielefeld
https://thenaildev.github.io/openmensa-bielefeld/
MIT License
0 stars 0 forks source link

Show correct prices for "Mensa Aktionstheke" #7

Closed TheNailDev closed 3 months ago

TheNailDev commented 3 months ago

The category "Mensa Aktionstheke" uses the same HTML element structure as side dishes. Unlike side dishes, different meals from the "Mensa Aktionstheke" can have different prices. The code was only expecting a single price for all side dishes in the same category and thus all meals from "Mensa Aktionstheke" were mistakenly reported to have the same price. Now the parser checks for each side dish (and thus also for meals from "Mensa Aktionstheke"), if there is a price per meal and reports that one instead. This fixes #6