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

Define a view that displays photos correctly #9

Open
simonw opened this issue Aug 5, 2020 · 0 comments · May be fixed by #14
Open

Define a view that displays photos correctly #9

simonw opened this issue Aug 5, 2020 · 0 comments · May be fixed by #14
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Collaborator

simonw commented Aug 5, 2020

The photos table stores data like this:

id createdAt source prefix suffix width height visibility created ▲ user
5e12c9708506bc000840262a January 06, 2020 - 05:45:20 UTC Swarm for iOS 1 https://fastly.4sqi.net/img/general/ /15889193_AXxGk4I1nbzUZuyYqObgbXdJNyEHiwj6AUDq0tPZWtw.jpg 1920 1440 public 2020-01-06T05:45:20 15889193

The photo URL can be derived from those pieces - define a SQL view which does that (using datasette-json-html to display the pictures)

@simonw simonw added the enhancement New feature or request label Aug 5, 2020
@redmanmale redmanmale linked a pull request Oct 1, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant