Skip to content

Commit

Permalink
fix be inclusive on start and exclusive on end
Browse files Browse the repository at this point in the history
If we use inclusive on the end date, we may use a previous days record
for the current day when we do not mean to.
  • Loading branch information
michaeldjeffrey committed Dec 6, 2024
1 parent d79e1c7 commit d22c726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile_verifier/src/unique_connections/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn get(
SELECT DISTINCT ON(hotspot_pubkey)
hotspot_pubkey, unique_connections
FROM unique_connections
WHERE received_timestamp >= $1 AND received_timestamp <= $2
WHERE received_timestamp >= $1 AND received_timestamp < $2
ORDER BY hotspot_pubkey, received_timestamp DESC
"#,
)
Expand Down

0 comments on commit d22c726

Please sign in to comment.