dev add pagination for search in internet images
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-10 12:16:31 +07:00
parent 792e0048cc
commit 8103960b45
3 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ services:
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=15d' # Удерживать 15 дней
- '--storage.tsdb.retention.time=15d'
- '--web.enable-lifecycle'
healthcheck:
test: [ "CMD", "wget", "--spider", "http://localhost:9090/-/healthy" ]
@@ -14,12 +14,8 @@ public class YandexSearchResponse {
@JsonProperty("images")
public void setImages(List<ImageResult> images) {
if (images != null && images.size() > 5) {
this.images = images.subList(0, 5);
} else {
this.images = images;
}
}
@Data
@JsonIgnoreProperties(ignoreUnknown = true)