|
@@ -1,4 +1,4 @@
|
|
|
-use crate::{get_date, BridgeInfo, BridgeInfoType};
|
|
|
+use crate::{BridgeInfo, BridgeInfoType};
|
|
|
use lox_library::proto::{level_up::LEVEL_INTERVAL, trust_promotion::UNTRUSTED_INTERVAL};
|
|
|
use nalgebra::DVector;
|
|
|
use statrs::distribution::{Continuous, MultivariateNormal};
|
|
@@ -50,11 +50,12 @@ pub fn blocked_in(
|
|
|
analyzer: &dyn Analyzer,
|
|
|
bridge_info: &BridgeInfo,
|
|
|
confidence: f64,
|
|
|
+ date: u32,
|
|
|
) -> HashSet<String> {
|
|
|
// TODO: Re-evaluate past days if we have backdated reports
|
|
|
let mut blocked_in = HashSet::<String>::new();
|
|
|
- let today = get_date();
|
|
|
- let age = bridge_info.first_seen - today;
|
|
|
+ let today = date;
|
|
|
+ let age = today - bridge_info.first_seen;
|
|
|
for (country, info) in &bridge_info.info_by_country {
|
|
|
if info.blocked {
|
|
|
// Assume bridges never become unblocked
|