Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
969b079
[Advanced Logbook] Started on dbtools
AndreasK79 Dec 2, 2025
24672dd
Merge branch 'dev' into lba_db_tools
AndreasK79 Dec 7, 2025
cdf942d
Tweaked layout a bit and implemented checks for continent/dxcc/distance
AndreasK79 Dec 7, 2025
2ddf698
Added state check
AndreasK79 Dec 7, 2025
0fad755
Implemented batch state fixer
AndreasK79 Dec 7, 2025
46fad66
Added button to show qso list in state
AndreasK79 Dec 7, 2025
10c5a0a
Fix QSO list. Added info to info button
AndreasK79 Dec 8, 2025
6933a63
Moved DXCC QSO updater from update to lba
AndreasK79 Dec 8, 2025
bde29d6
Add userid filter
AndreasK79 Dec 8, 2025
7e3b962
Get dxcc fix working in gui
AndreasK79 Dec 8, 2025
462664f
Use html view to load result instead
AndreasK79 Dec 8, 2025
e219425
Added Run buttons
AndreasK79 Dec 8, 2025
c2948a3
Merge branch 'dev' into lba_db_tools
AndreasK79 Dec 8, 2025
b49bfcf
Corrected number of counties
AndreasK79 Dec 8, 2025
6f9f0fa
Added state and callsign link in state qso list
AndreasK79 Dec 10, 2025
b72d9c9
Fixed DXCC checking for ALL QSOs
AndreasK79 Dec 11, 2025
7117a10
Fix updating missing DXCC
AndreasK79 Dec 12, 2025
dc9a7ad
Add QSO list for missing DXCC
AndreasK79 Dec 13, 2025
3d0949c
Added changed files
AndreasK79 Dec 13, 2025
82fbbb8
Continent update is fixed
AndreasK79 Dec 13, 2025
b70c128
Fixed CQ/ITU zone updater
AndreasK79 Dec 14, 2025
99c2d05
Changed wording a bit
AndreasK79 Dec 14, 2025
d390f2d
Fixed some ids to have spinner working
AndreasK79 Dec 14, 2025
91cdec2
Moved function from model, and added userid
AndreasK79 Dec 14, 2025
539ee16
Merge branch 'dev' into lba_db_tools
AndreasK79 Dec 14, 2025
00b5397
Adding translations
AndreasK79 Dec 14, 2025
d16ff05
Removed information in dialog, and instead linked to the Wiki
AndreasK79 Dec 14, 2025
27f9cb9
Changed to button
AndreasK79 Dec 14, 2025
e4721c1
Fixed state update count
AndreasK79 Dec 14, 2025
6a746b6
Red if 0, green if > 0
AndreasK79 Dec 15, 2025
9d29f7e
Fixed return messages for dxcc update
AndreasK79 Dec 15, 2025
90daf3a
More verbose message on dxcc and state fixer
AndreasK79 Dec 15, 2025
fc1993b
Fix disabled close button
AndreasK79 Dec 15, 2025
325ada1
Fixed continent return result
AndreasK79 Dec 15, 2025
decc5f7
Fixed distance return result
AndreasK79 Dec 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add userid filter
  • Loading branch information
AndreasK79 committed Dec 8, 2025
commit bde29d6cbf030846597e0df8d0c46d9e2685cad5
4 changes: 3 additions & 1 deletion application/models/Logbookadvanced_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,8 @@ public function check_missing_dxcc_id($all) {
ini_set('memory_limit', '-1'); // This consumes a lot of Memory!
$this->db->trans_start(); // Transaction has to be started here, because otherwise we're trying to update rows which are locked by the select
$this->db->select("COL_PRIMARY_KEY, COL_CALL, COL_TIME_ON, COL_TIME_OFF"); // get all records with no COL_DXCC
$this->db->join('station_profile', 'station_profile.station_id = ' . $this->config->item('table_name') . '.station_id');
$this->db->where("station_profile.user_id", $this->session->userdata('user_id'));

if (!$all) { // check which to update - records with no dxcc or all records
$this->db->where("COL_DXCC is NULL");
Expand All @@ -1612,7 +1614,7 @@ public function check_missing_dxcc_id($all) {

$count = 0;
if ($r->num_rows() > 0) { //query dxcc_prefixes
$sql = "update " . $this->config->item('table_name') . " set COL_COUNTRY = ?, COL_DXCC=? where COL_PRIMARY_KEY=?";
$sql = "update " . $this->config->item('table_name') . " set COL_COUNTRY = ?, COL_DXCC = ? where COL_PRIMARY_KEY = ?";
$q = $this->db->conn_id->prepare($sql); // PREPARE this statement. For DB this means: No parsing overhead, parse once use many (see execute query below)
foreach ($r->result_array() as $row) {
$qso_date = $row['COL_TIME_OFF'] == '' ? $row['COL_TIME_ON'] : $row['COL_TIME_OFF'];
Expand Down