Skip to content

Commit

Permalink
Merge branch 'bugfix-254' into testing_0.29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Nov 9, 2023
2 parents 11853a6 + d551857 commit 67baae1
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 67baae1

Please sign in to comment.