Skip to content

[Bug]: Serving size inconsistencies with FatSecret #883

@BryceKrispiess

Description

@BryceKrispiess

Bug Description

I noticed recently that some of the serving sizes are wrong for foods coming from FatSecret. The nutritional facts are correct but for some reason some foods just say per 100g even though that is not what the serving size is. I even verified by checking the FatSecret website and it has the correct serving size such as 1/4 cup. It seems to only have issues with some foods though. More often than not it’s liquids or powders I’ve noticed, not sure if that means it’s related to foods with cup serving size. Not all foods are incorrect though as meals and snacks seem to mostly be correct.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to foods
  2. Click on add a new food
  3. Search “Southern Homes Mild Cheddar cheese”
  4. Shows up as per 100g
  5. Go here: https://mobile.fatsecret.com/calories-nutrition/southern-home/shredded-mild-cheddar-natural-cheese
  6. see that it should be per 1/4 cup
  7. this happens with milk, flour etc

Expected Behavior

Serving size type should be varied over correctly from FatSecret, rather than defaulting to 100g

Actual Behavior

FatSecret defaults to per 100g for some food items.

Environment

  • SparkyFitness Version: v.0.16.5.0
  • Running Env: Docker compose

Screenshots/Videos (Optional)

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions