mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-27 17:38:10 -07:00
new merge conflict addressed, to_datetime unused code removed, some refactoring to appease tests
This commit is contained in:
committed by
Will Greenberg
parent
fee082cde4
commit
ba78c7bd01
+9
-9
@@ -96,17 +96,17 @@ pub(crate) async fn load_gps_records_for_entry(
|
||||
// not the current config, so old fixed-mode sessions still get coordinates even
|
||||
// if the mode has since been changed. Use the configured fixed coords directly
|
||||
// rather than gps_state, which can be overwritten by API calls or be None.
|
||||
if entry_gps_mode == Some(GpsMode::Fixed) {
|
||||
if let (Some(lat), Some(lon)) = (
|
||||
if entry_gps_mode == Some(GpsMode::Fixed)
|
||||
&& let (Some(lat), Some(lon)) = (
|
||||
state.config.gps_fixed_latitude,
|
||||
state.config.gps_fixed_longitude,
|
||||
) {
|
||||
return vec![GpsRecord {
|
||||
unix_ts: 0,
|
||||
lat,
|
||||
lon,
|
||||
}];
|
||||
}
|
||||
)
|
||||
{
|
||||
return vec![GpsRecord {
|
||||
unix_ts: 0,
|
||||
lat,
|
||||
lon,
|
||||
}];
|
||||
}
|
||||
vec![]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user