use cached urgency() for json exports

speeding up the export of tasks for cases with urgency.inherit=1
This commit is contained in:
Felix Stupp 2025-05-05 14:42:11 +02:00 committed by GitHub
parent 416c6d3ca4
commit c60f1d6de0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -894,7 +894,7 @@ std::string Task::composeJSON(bool decorate /*= false*/) const {
#ifdef PRODUCT_TASKWARRIOR #ifdef PRODUCT_TASKWARRIOR
// Include urgency. // Include urgency.
if (decorate) out << ',' << "\"urgency\":" << urgency_c(); if (decorate) out << ',' << "\"urgency\":" << urgency();
#endif #endif
out << '}'; out << '}';