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

"More interesting photos" are not sorted by date #5830

Closed
g123k opened this issue Nov 10, 2024 · 1 comment · Fixed by #5843
Closed

"More interesting photos" are not sorted by date #5830

g123k opened this issue Nov 10, 2024 · 1 comment · Fixed by #5843

Comments

@g123k
Copy link
Collaborator

g123k commented Nov 10, 2024

Hi everyone!

It's not always the case, but for example, with 3268840001008, photos are not sorted:
Image

@monsieurtanuki
Copy link
Contributor

@g123k Very strange, as it is actually sorted by id. How come ids and timestamps are not following the same order?
That said, we can sort by timestamp instead.
https://world.openfoodfacts.org/api/v3/product/3268840001008?fields=images

            "154": {
                "sizes": {
                    "100": {
                        "h": 100,
                        "w": 75
                    },
                    "400": {
                        "h": 400,
                        "w": 300
                    },
                    "full": {
                        "h": 4032,
                        "w": 3024
                    }
                },
                "uploaded_t": "1633067687",
                "uploader": "openfoodfacts-contributors"
            },
            "155": {
                "sizes": {
                    "100": {
                        "h": 100,
                        "w": 38
                    },
                    "400": {
                        "h": 400,
                        "w": 150
                    },
                    "full": {
                        "h": 1080,
                        "w": 406
                    }
                },
                "uploaded_t": "1604314658",
                "uploader": "kiliweb"
            },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants