kronos-et-al / MensaApp

Application for communication and collective exchange of menu information in university catering facilities
MIT License
42 stars 2 forks source link

API returns `null` nutrition data for sides #146

Closed muety closed 5 months ago

muety commented 5 months ago

Example query (latest backend version):

{
  getCanteen(canteenId: "5fe2cd62-52f7-4686-bd3a-88c0588d9874") {
    id
    name
    lines {
      name
      meals(date: "2024-03-25") {
        id
        name
        nutritionData {
          energy
        }
        sides {
          id
          name
          nutritionData {
            energy
          }
        }
      }
    }
  }
}

Even though nutrition data is present, e.g. for the Himbeerquark:

image

worldofjoni commented 5 months ago

@uglrl ?

uglrl commented 5 months ago

I could not verify this. It seems (based on current data) that this is fixed. If the issue comes up again, please include the raw html file for verification.

worldofjoni commented 5 months ago

I had in mind that nutrients are not parsed for sides yet. if that is not the case, then this is strange in fact.

AlexKutschera commented 5 months ago

as of now i don't see any missing data. For the sample query above it seems that the data just has not been parsed for meals as well as sides back then