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

bug - movie entries no longer unique #452

Closed
2 tasks done
pbogre opened this issue Jul 27, 2023 · 0 comments · Fixed by #453
Closed
2 tasks done

bug - movie entries no longer unique #452

pbogre opened this issue Jul 27, 2023 · 0 comments · Fixed by #453
Labels
bug Something isn't working

Comments

@pbogre
Copy link
Collaborator

pbogre commented Jul 27, 2023

Description

i suspect that this is because the SQL query now groups by watched_at, which means that there are different entries even when sorting by title, release date, etc.

to fix this, make the sql query sort by the first watched_at date.

im not familiar enough with sql to do this right away, but maybe it is possible to remove entries with duplicate title and only leave the one with the earliest watch date?

todo:

  • remove duplicate entries in query, only leave out earliest watch date
  • change sortBy name from Watch date to Earliest watch date

Version

latest repo

Steps to Reproduce

  1. build & run latest repo
  2. add movie with two different watch dates
  3. go to all movies, see 2 entries

Screenshots

No response

Logs

No response

Server OS

No response

Client Platform

None

Client Device

No response

Client OS

No response

Client Browser

No response

Additional Context

No response

@leepeuker leepeuker added the bug Something isn't working label Jul 27, 2023
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

Successfully merging a pull request may close this issue.

2 participants