This commit is contained in:
2025-10-30 23:18:16 +01:00
parent a372296afa
commit cbd11e0c51
9 changed files with 430 additions and 343 deletions

View File

@@ -363,7 +363,7 @@ func (r *Log4OMContactsRepository) GetQSOStats() QSOStats {
func (r *Log4OMContactsRepository) GetDXCCCount() int {
var count int
err := r.db.QueryRow("SELECT COUNT(DISTINCT dxcc) FROM log WHERE dxcc != '' AND dxcc IS NOT NULL").Scan(&count)
err := r.db.QueryRow("SELECT COUNT(DISTINCT dxcc) FROM log WHERE dxcc != '' AND dxcc IS NOT NULL AND dxcc != 0").Scan(&count)
if err != nil {
log.Error("could not get DXCC count:", err)
return 0