Skip to content

Commit

Permalink
Fix counting OBSs & out-of-fac. in spot-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeo committed Dec 12, 2024
1 parent f4728a6 commit 7f890f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions vzdv-site/templates/changelog.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<div class="card-text">
<ul>
<li>Fixed some not-logged-in wording</li>
<li>Fixed spot-update activity counting other facility controlling and observers (true-up activity for CoTM/etc. not affected)</li>
</ul>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions vzdv-tasks/src/activity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ pub async fn update_online_controller_activity(config: &Config, db: &Pool<Sqlite
if !on_roster_cids.contains(&cid) {
continue;
}
if !position_in_facility_airspace(config, &controller.callsign) {
// ignore controlling in other facilities and observers
continue;
}
debug!("Spot-updating activity for {cid}");
if let Err(e) =
update_single_activity(config, db, &start_of_month, cid, &controller.logon_time).await
Expand Down

0 comments on commit 7f890f7

Please sign in to comment.