From e51f39255493cd699609a39385c5dc8bc89d1661 Mon Sep 17 00:00:00 2001 From: gsd Date: Mon, 11 Dec 2023 20:34:21 +0300 Subject: [PATCH] collect statistic v1 fix2 --- src/main/java/app/services/db/CollectStatisticService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/app/services/db/CollectStatisticService.java b/src/main/java/app/services/db/CollectStatisticService.java index c1b9252..7f039fb 100644 --- a/src/main/java/app/services/db/CollectStatisticService.java +++ b/src/main/java/app/services/db/CollectStatisticService.java @@ -26,6 +26,7 @@ public class CollectStatisticService extends BaseUpdater { @Transactional("RwTransactionManager") public void add(CollectableStatistic collectableStatistic) { + if (collectableStatistic.getClient_ip() != null && collectableStatistic.getClient_ip().equals("192.168.3.3") && collectableStatistic.getPath().equals("/api/stats")) return; entityManager.createNativeQuery("INSERT INTO `web_statistic` (`steam64`, `client_ip`, `method`, `path`, `query`, `useragent`) VALUES (?1, ?2, ?3, ?4, ?5, ?6)") .setParameter(1, collectableStatistic.getSteam64()) .setParameter(2, collectableStatistic.getClient_ip())