cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Incorrect calculation of recipes in the category

Open u2597511 opened this issue 1 year ago • 4 comments

Description When displaying the list of categories, the number of recipes is not displayed correctly. In some categories, the number of recipes is calculated correctly, and in some categories it is not. As a rule, a larger number is indicated than it actually is.

Reproduction Steps to reproduce the behavior: Go to CookBook

Expected behavior The number of recipes in category must be counted correctly

Actual behavior Incorrect number of recipes in the category

Screenshots image

Browser Chrome

Versions Nextcloud server version: 8 (29.0.7) Cookbook version: 0.11.2 Database system: MySQL 8.0.35

u2597511 avatar Oct 01 '24 17:10 u2597511

I have a similar issue with the count of recipes. Current count is 500 recipes but total count says 1776. Checking the table 'cookbook_categories' the count of records macthes exact this number! So seems like the shown value just grabs the category count instead of e.g. the count of folders in the recipe location.

Besides that my category count is also wrong as stated above.

xTGHHx avatar Oct 06 '24 11:10 xTGHHx

I have the same issue. I have 8 deserts, says I have 20. I have 5 categories, and all the others report correctly

It's also different per user. My user has Desserts wrong. My user also shares the recipe folder with 2 other users. 1 User shows everything exactly correct. The other user has Breakfast with the wrong number.

31337-4554551n avatar Nov 14 '24 06:11 31337-4554551n

Cookbook Version 0.11.3 Nextcloud 30.0.10

Some folders show the correct number of recipes, others are way off, e.g. one shows 25 recipes and it only has 5....

knttr avatar Jun 19 '25 12:06 knttr

Cookbook Version 0.11.3 Nextcloud Version 30.0.12

I have the same issue. Some categories show the correct number, some not.

Re-Importing the recipes via the settings menu in Cookbook did not have any effect.

Is there information we can provide to support debugging the issue?

shagn avatar Jul 23 '25 18:07 shagn