aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2020-05-14 20:54:32 -0700
committerAlec Warner <antarus@gentoo.org>2020-05-14 20:54:56 -0700
commitbd59c15958c319d0922bc52b20b2783be6740ae6 (patch)
tree52b4498dff6a033519b46ec69f4814e198a6a8ee
parentBump the version to v0.1.23 (diff)
downloadsoko-bd59c15958c319d0922bc52b20b2783be6740ae6.tar.gz
soko-bd59c15958c319d0922bc52b20b2783be6740ae6.tar.bz2
soko-bd59c15958c319d0922bc52b20b2783be6740ae6.zip
Render 1000 items in the feed instead of 50.
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r--pkg/app/handler/packages/added.go2
-rw-r--r--pkg/app/handler/packages/keyworded.go2
-rw-r--r--pkg/app/handler/packages/stabilized.go2
-rw-r--r--pkg/app/handler/packages/updated.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/pkg/app/handler/packages/added.go b/pkg/app/handler/packages/added.go
index 2f14b46..50f8e84 100644
--- a/pkg/app/handler/packages/added.go
+++ b/pkg/app/handler/packages/added.go
@@ -15,6 +15,6 @@ func Added(w http.ResponseWriter, r *http.Request) {
}
func AddedFeed(w http.ResponseWriter, r *http.Request) {
- addedVersions := getAddedVersions(50)
+ addedVersions := getAddedVersions(1000)
feeds.Changes(GetTextFuncMap(), CreateFeedData("Added", addedVersions), w)
}
diff --git a/pkg/app/handler/packages/keyworded.go b/pkg/app/handler/packages/keyworded.go
index 214b47f..2bf922c 100644
--- a/pkg/app/handler/packages/keyworded.go
+++ b/pkg/app/handler/packages/keyworded.go
@@ -15,6 +15,6 @@ func Keyworded(w http.ResponseWriter, r *http.Request) {
}
func KeywordedFeed(w http.ResponseWriter, r *http.Request) {
- keywordedVersions := GetKeywordedVersions(50)
+ keywordedVersions := GetKeywordedVersions(1000)
feeds.Changes(GetTextFuncMap(), CreateFeedData("Keyworded", keywordedVersions), w)
}
diff --git a/pkg/app/handler/packages/stabilized.go b/pkg/app/handler/packages/stabilized.go
index c3a58a0..773437c 100644
--- a/pkg/app/handler/packages/stabilized.go
+++ b/pkg/app/handler/packages/stabilized.go
@@ -15,6 +15,6 @@ func Stabilized(w http.ResponseWriter, r *http.Request) {
}
func StabilizedFeed(w http.ResponseWriter, r *http.Request) {
- stabilizedVersions := GetStabilizedVersions(50)
+ stabilizedVersions := GetStabilizedVersions(1000)
feeds.Changes(GetTextFuncMap(), CreateFeedData("Stabilized", stabilizedVersions), w)
}
diff --git a/pkg/app/handler/packages/updated.go b/pkg/app/handler/packages/updated.go
index 7e401d2..0e07216 100644
--- a/pkg/app/handler/packages/updated.go
+++ b/pkg/app/handler/packages/updated.go
@@ -15,6 +15,6 @@ func Updated(w http.ResponseWriter, r *http.Request) {
}
func UpdatedFeed(w http.ResponseWriter, r *http.Request) {
- updatedVersions := GetUpdatedVersions(50)
+ updatedVersions := GetUpdatedVersions(1000)
feeds.Changes(GetTextFuncMap(), CreateFeedData("Updated", updatedVersions), w)
}