nextcloud / cookbook

🍲 A library for all your recipes
https://apps.nextcloud.com/apps/cookbook
GNU Affero General Public License v3.0
540 stars 93 forks source link

Incorrect calculation of recipes in the category #2525

Open u2597511 opened 1 month ago

u2597511 commented 1 month ago

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

xTGHHx commented 1 month ago

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.

31337-4554551n commented 1 week ago

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.