Added /atom/projects?all for inso

This commit is contained in:
Asaf Gartner 2021-09-05 22:43:34 +03:00
parent 9a2e3f45e7
commit e74b18967e
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ func AtomFeed(c *RequestContext) ResponseData {
type projectResult struct {
Project models.Project `db:"project"`
}
_, hasAll := c.Req.URL.Query()["all"]
if hasAll {
itemsPerFeed = 100000
}
projects, err := db.Query(c.Context(), c.Conn, projectResult{},
`
SELECT $columns