summaryrefslogtreecommitdiffstats
path: root/examples/gallery/src/civitai.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gallery/src/civitai.rs')
-rw-r--r--examples/gallery/src/civitai.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs
index 7a8f1c45..986b6bf2 100644
--- a/examples/gallery/src/civitai.rs
+++ b/examples/gallery/src/civitai.rs
@@ -13,6 +13,8 @@ pub struct Image {
}
impl Image {
+ pub const LIMIT: usize = 99;
+
pub async fn list() -> Result<Vec<Self>, Error> {
let client = reqwest::Client::new();
@@ -27,7 +29,7 @@ impl Image {
("sort", "Most Reactions"),
("period", "Week"),
("nsfw", "None"),
- ("limit", "99"),
+ ("limit", &Image::LIMIT.to_string()),
])
.send()
.await?