Exchange column names for display and lotw name

This commit is contained in:
phl0
2024-12-01 23:49:51 +01:00
parent d7ec43b7b1
commit 7b8f767db4
8 changed files with 65 additions and 33 deletions

View File

@@ -423,7 +423,7 @@ class Update extends CI_Controller {
$satname = $lines[$i];
$tleline1 = $lines[$i + 1];
$tleline2 = $lines[$i + 2];
$sql = "INSERT INTO tle (satelliteid, tle) select id, ? from satellite where name = ? or exportname = ?";
$sql = "INSERT INTO tle (satelliteid, tle) select id, ? from satellite where name = ? or displayname = ?";
$this->db->query($sql,array($tleline1."\n".$tleline2,$satname,$satname));
}
}