Skip to content

Commit

Permalink
add test diff 0, for update distance
Browse files Browse the repository at this point in the history
  • Loading branch information
abarrau authored Sep 23, 2023
1 parent f68455b commit f21efc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Logbook_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -3943,7 +3943,7 @@ public function check_missing_grid_id($all){
public function update_distances(){
$this->db->select("COL_PRIMARY_KEY, COL_GRIDSQUARE, station_gridsquare");
$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
$this->db->where("COL_DISTANCE is NULL");
$this->db->where("((COL_DISTANCE is NULL) or (COL_DISTANCE = 0))");
$this->db->where("COL_GRIDSQUARE is NOT NULL");
$this->db->where("COL_GRIDSQUARE != ''");
$this->db->trans_start();
Expand Down

0 comments on commit f21efc0

Please sign in to comment.