diff options
author | jafarhabibi <iceberg.1369@gmail.com> | 2022-02-01 11:56:40 +0330 |
---|---|---|
committer | jafarhabibi <iceberg.1369@gmail.com> | 2022-02-01 11:56:40 +0330 |
commit | 3a045b29bfc8a0b3a65db3ccc973dcbd5901c1e5 (patch) | |
tree | 9e4593646d67d683047a8f65cbcc0831e6a8d9cc /src | |
parent | 9acf9c7f7a4c3d8279b0afb9683098984a1b4518 (diff) | |
download | trackermap-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')
-rw-r--r-- | src/main/java/org/traccar/handler/FilterHandler.java | 2 |
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)) { |