Skip to content

Commit

Permalink
Fixed #254 - LoTW QSL import reports unmatched QSOs sometime
Browse files Browse the repository at this point in the history
QLog has a time tolerance of +-1 hour for QSL import (eQSL and LoTW).
However, if there is the same QSO in this +-1 hour interval, QLog declares
this QSO as Unmatched, because it is not able to pair them exactly
(even though they have the same times).

It seems that LoTW time tolerance is +-30 minutes. Qlog is changed
to the same interval.
  • Loading branch information
foldynl committed Nov 7, 2023
1 parent d1c11f1 commit d551857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logformat/LogFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ unsigned long LogFormat::runImport(QTextStream& importLogStream,
"WHERE callsign=upper(:callsign) "
"AND upper(mode)=upper(:mode) "
"AND upper(band)=upper(:band) "
"AND ABS(JULIANDAY(start_time)-JULIANDAY(datetime(:startdate)))*24<1") )
"AND ABS(JULIANDAY(start_time)-JULIANDAY(datetime(:startdate)))*24*60<30") )
{
qWarning() << "cannot prepare Dup statement";
return 0;
Expand Down Expand Up @@ -589,7 +589,7 @@ void LogFormat::runQSLImport(QSLFrom fromService)
}

// It is important to use callsign index here
QString matchFilter = QString("callsign=upper('%1') AND upper(mode)=upper('%2') AND upper(band)=upper('%3') AND ABS(JULIANDAY(start_time)-JULIANDAY(datetime('%4')))*24<1")
QString matchFilter = QString("callsign=upper('%1') AND upper(mode)=upper('%2') AND upper(band)=upper('%3') AND ABS(JULIANDAY(start_time)-JULIANDAY(datetime('%4')))*24*60<30")
.arg(QSLRecord.value("callsign").toString(),
QSLRecord.value("mode").toString(),
QSLRecord.value("band").toString(),
Expand Down

0 comments on commit d551857

Please sign in to comment.