aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorjafarhabibi <iceberg.1369@gmail.com>2022-02-01 11:56:40 +0330
committerjafarhabibi <iceberg.1369@gmail.com>2022-02-01 11:56:40 +0330
commit3a045b29bfc8a0b3a65db3ccc973dcbd5901c1e5 (patch)
tree9e4593646d67d683047a8f65cbcc0831e6a8d9cc /src/main
parent9acf9c7f7a4c3d8279b0afb9683098984a1b4518 (diff)
downloadtrackermap-server-3a045b29bfc8a0b3a65db3ccc973dcbd5901c1e5.tar.gz
trackermap-server-3a045b29bfc8a0b3a65db3ccc973dcbd5901c1e5.tar.bz2
trackermap-server-3a045b29bfc8a0b3a65db3ccc973dcbd5901c1e5.zip
add skiplimit and skipAttributes checks for Duplicate filter again
Diffstat (limited to 'src/main')
-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)) {