mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-06 04:42:36 +02:00
Solved some todo(s)
This commit is contained in:
parent
05acfb045f
commit
a3cf4f17f8
5 changed files with 27 additions and 30 deletions
|
@ -5,10 +5,9 @@ import (
|
|||
)
|
||||
|
||||
// Get user stream
|
||||
// todo implement stidx + offset
|
||||
func (db *appdbimpl) GetUserStream(uid string, start_index int, limit int) (*[]structures.Photo, error) {
|
||||
|
||||
// Get photos
|
||||
// Get photos from the database
|
||||
rows, err := db.c.Query(`SELECT "p"."user", "p"."id", "p"."date",
|
||||
(
|
||||
SELECT COUNT(*) AS "likes" FROM "likes" AS "l"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue