astarub / campus_app

Campus App of Ruhr-University Bochum
https://app.asta-bochum.de
GNU Affero General Public License v3.0
13 stars 7 forks source link

Mensa menu cannot be viewed offline #147

Closed henry-herrmann closed 9 months ago

henry-herrmann commented 10 months ago

Normally the last saved mensa menu is displayed, if the user is offline, but for some reason this is not happening right now.

henry-herrmann commented 10 months ago

Apparently this is code by an unintended path of executions, which is caused by first trying to clear the dish entities cache and then overwriting it. Unfortunately this does not work as intended, causing the whole cache to be cleared.

Link to code: https://github.com/astarub/campus_app/blob/20f61f6dae818c4925f166a4e04dc385a618f23b/lib/pages/mensa/mensa_repository.dart#L110