Only confirm redownload of solar flux data if less than 1 day old

pull/762/head
Jon Beniston 2021-01-31 15:44:16 +00:00
rodzic 22e711342a
commit d1c728b030
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1206,7 +1206,7 @@ void StarTrackerGUI::updateSolarFlux(bool all)
{ {
QDate today = QDateTime::currentDateTimeUtc().date(); QDate today = QDateTime::currentDateTimeUtc().date();
QString solarFluxFile = getSolarFluxFilename(); QString solarFluxFile = getSolarFluxFilename();
if (m_dlm.confirmDownload(solarFluxFile)) if (m_dlm.confirmDownload(solarFluxFile, nullptr, 1))
{ {
QString urlString = QString("http://www.sws.bom.gov.au/Category/World Data Centre/Data Display and Download/Solar Radio/station/learmonth/SRD/%1/L%2.SRD") QString urlString = QString("http://www.sws.bom.gov.au/Category/World Data Centre/Data Display and Download/Solar Radio/station/learmonth/SRD/%1/L%2.SRD")
.arg(today.year()).arg(today.toString("yyMMdd")); .arg(today.year()).arg(today.toString("yyMMdd"));