kronos-et-al / MensaApp

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

API returns `null` nutrition data for sides #146

Closed muety closed 7 months ago

muety commented 7 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 7 months ago

@uglrl ?

uglrl commented 7 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 7 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 7 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