Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect calculation of recipes in the category #2525

Open
u2597511 opened this issue Oct 1, 2024 · 2 comments
Open

Incorrect calculation of recipes in the category #2525

u2597511 opened this issue Oct 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@u2597511
Copy link

u2597511 commented Oct 1, 2024

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 u2597511 added the bug Something isn't working label Oct 1, 2024
@xTGHHx
Copy link

xTGHHx commented Oct 6, 2024

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
Copy link

31337-4554551n commented Nov 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants