aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-02-01 09:40:18 -0800
committerGitHub <noreply@github.com>2022-02-01 09:40:18 -0800
commit135b98315ff4a34025b21221862236936e745823 (patch)
tree9e4593646d67d683047a8f65cbcc0831e6a8d9cc
parent9acf9c7f7a4c3d8279b0afb9683098984a1b4518 (diff)
parent3a045b29bfc8a0b3a65db3ccc973dcbd5901c1e5 (diff)
downloadtrackermap-server-135b98315ff4a34025b21221862236936e745823.tar.gz
trackermap-server-135b98315ff4a34025b21221862236936e745823.tar.bz2
trackermap-server-135b98315ff4a34025b21221862236936e745823.zip
Merge pull request #4806 from iceberg1369/master
Add skiplimit and skipAttributes checks for Duplicate filter
-rw-r--r--src/main/java/org/traccar/handler/FilterHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/FilterHandler.java b/src/main/java/org/traccar/handler/FilterHandler.java
index 049512765..2b850c755 100644
--- a/src/main/java/org/traccar/handler/FilterHandler.java
+++ b/src/main/java/org/traccar/handler/FilterHandler.java
@@ -181,7 +181,7 @@ public class FilterHandler extends BaseDataHandler {
} else {
preceding = getLastReceivedPosition(deviceId);
}
- if (filterDuplicate(position, preceding)) {
+ if (filterDuplicate(position, preceding) && !skipLimit(position, preceding) && !skipAttributes(position)) {
filterType.append("Duplicate ");
}
if (filterStatic(position) && !skipLimit(position, preceding) && !skipAttributes(position)) {