@@ -21,8 +21,9 namespace { | |||||
21 | /// - %1: start date |
|
21 | /// - %1: start date | |
22 | /// - %2: end date |
|
22 | /// - %2: end date | |
23 | /// - %3: parameter id |
|
23 | /// - %3: parameter id | |
|
24 | /// Old url: http://amda.irap.omp.eu/php/rest/ | |||
24 | const auto AMDA_URL_FORMAT = QStringLiteral( |
|
25 | const auto AMDA_URL_FORMAT = QStringLiteral( | |
25 | "http://amda.irap.omp.eu/php/rest/" |
|
26 | "http://amdatest.irap.omp.eu/php/rest/" | |
26 | "getParameter.php?startTime=%1&stopTime=%2¶meterID=%3&outputFormat=ASCII&" |
|
27 | "getParameter.php?startTime=%1&stopTime=%2¶meterID=%3&outputFormat=ASCII&" | |
27 | "timeFormat=ISO8601&gzip=0"); |
|
28 | "timeFormat=ISO8601&gzip=0"); | |
28 |
|
29 | |||
@@ -217,7 +218,7 void AmdaProvider::retrieveData(QUuid token, const SqpRange &dateTime, const QVa | |||||
217 |
|
218 | |||
218 | // Don't do anything if the reply was abort |
|
219 | // Don't do anything if the reply was abort | |
219 | if (reply->error() == QNetworkReply::NoError) { |
|
220 | if (reply->error() == QNetworkReply::NoError) { | |
220 | auto downloadFileUrl = QUrl{QString{reply->readAll()}}; |
|
221 | auto downloadFileUrl = QUrl{QString{reply->readAll()}.trimmed()}; | |
221 |
|
222 | |||
222 | qCInfo(LOG_AmdaProvider()) |
|
223 | qCInfo(LOG_AmdaProvider()) | |
223 | << tr("TORM AmdaProvider::retrieveData downloadFileUrl:") << downloadFileUrl; |
|
224 | << tr("TORM AmdaProvider::retrieveData downloadFileUrl:") << downloadFileUrl; |
General Comments 0
You need to be logged in to leave comments.
Login now