fixed api comment

This commit is contained in:
vabene1111
2023-12-02 17:42:04 +01:00
parent fe11b88fd0
commit d1174ea50d

View File

@ -599,7 +599,8 @@ class FoodViewSet(viewsets.ModelViewSet, TreeMixin):
@decorators.action(detail=True, methods=['POST'], )
def fdc(self, request, pk):
"""
updates the food with all possible data from the FDC Api (only adds new, does not change existing properties)
updates the food with all possible data from the FDC Api
if properties with a fdc_id already exist they will be overridden, if existing properties don't have a fdc_id they won't be changed
"""
food = self.get_object()