Disable date-based scrolling limit in GetLastTransactionsScript temporarily.
This commit is contained in:
parent
7d953add94
commit
e5a11b0a57
@ -990,22 +990,23 @@ GetLastTransactionsScript::SearchResult GetLastTransactionsScript::searchOne(
|
||||
// окно today+yesterday полностью проскроллено, дальше только старая история.
|
||||
// Прекращаем скролл (целевой транзакции в окне нет), вместо того чтобы
|
||||
// листать до упора и упереться в watchdog-таймаут.
|
||||
{
|
||||
const QDate cutoff = todayLocal.addDays(-1); // вчера
|
||||
QDate newestVisible;
|
||||
for (const QString &gd : groupDates) {
|
||||
const QDate d = QDate::fromString(gd, "dd.MM.yyyy");
|
||||
if (d.isValid() && (newestVisible.isNull() || d > newestVisible))
|
||||
newestVisible = d;
|
||||
}
|
||||
if (newestVisible.isValid() && newestVisible < cutoff) {
|
||||
qDebug() << "[Dushanbe::GetLastTransactions] Past today+yesterday window"
|
||||
" (newest visible=" << newestVisible.toString("dd.MM.yyyy")
|
||||
<< "< cutoff=" << cutoff.toString("dd.MM.yyyy")
|
||||
<< ") — stopping scroll";
|
||||
return SearchResult::PastWindow;
|
||||
}
|
||||
}
|
||||
// NOTE: окно "сегодня+вчера" временно отключено — скроллим без ограничения по дате.
|
||||
// {
|
||||
// const QDate cutoff = todayLocal.addDays(-1); // вчера
|
||||
// QDate newestVisible;
|
||||
// for (const QString &gd : groupDates) {
|
||||
// const QDate d = QDate::fromString(gd, "dd.MM.yyyy");
|
||||
// if (d.isValid() && (newestVisible.isNull() || d > newestVisible))
|
||||
// newestVisible = d;
|
||||
// }
|
||||
// if (newestVisible.isValid() && newestVisible < cutoff) {
|
||||
// qDebug() << "[Dushanbe::GetLastTransactions] Past today+yesterday window"
|
||||
// " (newest visible=" << newestVisible.toString("dd.MM.yyyy")
|
||||
// << "< cutoff=" << cutoff.toString("dd.MM.yyyy")
|
||||
// << ") — stopping scroll";
|
||||
// return SearchResult::PastWindow;
|
||||
// }
|
||||
// }
|
||||
|
||||
// Скроллим вниз — свайп внутри области транзакций
|
||||
if (scroll < maxScrolls) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user