Skip to content

Commit

Permalink
Update query to pull beacons from db
Browse files Browse the repository at this point in the history
  • Loading branch information
bbalser committed Feb 25, 2023
1 parent 91462f0 commit a8616ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iot_verifier/src/poc_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl Report {
from poc_report
inner join entropy on poc_report.remote_entropy=entropy.data
where poc_report.report_type = 'beacon' and status = 'ready'
and entropy.timestamp < $1
and entropy.id = (select ie.id from entropy as ie where poc_report.remote_entropy = ie.data and ie.timestamp < $1 order by ie.timestamp DESC LIMIT 1)
and poc_report.attempts < $2
order by poc_report.created_at asc
limit 25000
Expand Down

0 comments on commit a8616ac

Please sign in to comment.