diff --git a/energyplugin/etm/types/sheddinglog.cpp b/energyplugin/etm/types/sheddinglog.cpp index b62ccc8..a98a7e5 100644 --- a/energyplugin/etm/types/sheddinglog.cpp +++ b/energyplugin/etm/types/sheddinglog.cpp @@ -173,6 +173,12 @@ QVariantMap SheddingLog::resume() const { if (m_revision == 0) return QVariantMap(); + // Une QVariantList de chaînes, comme le reste de la télémétrie — pas une QStringList : le JSON + // est le même, mais un consommateur qui parcourt la carte par type (l'enregistreur de + // `decisions` anonymise les ThingId des listes) ne reconnaîtrait pas la seconde. + QVariantList ids; + for (const QString &id : ouverts()) + ids.append(id); return QVariantMap{{QStringLiteral("revision"), m_revision}, - {QStringLiteral("open"), ouverts()}}; + {QStringLiteral("open"), ids}}; }