This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

table loose subtable in storage.set
#1
hi to all,

I'm generating a dynamic table that should be saved to a stoarge at the end of the script.

This stable if quite dynamic and new keys can be created during the execution.

In particular I'm generating:


Code:
a general Table tree
  \ Year
      \ day
          \ Total by day
          \Hours
            \ 00
              ...
            \ 23


during the execution I dump to log the table and it is correct, but when I storage.set the table.... the table hours become empty
 Sad 

this is the json dump pf the table
Code:
{
  "lastSample":348,
  "description":"UNARETI - Linea principale 5.5kW",
  "lastTime":1662285437,
  "datiConsumo":{
    "2022":{
      "giorno":{
        "247":{
          "ora":{
            "12":"0.154666666666667"
            },
          "totale":"1.69234333333334"
          }
        },
      "mensile":{
        "9":"1.69234333333334"
        },
      "totale":"1.69234333333334",
      "settimana":{
        "35":"1.69234333333334"
        }
      },
  "totale":"1.69234333333334"
  }
}


this is the storage view for the same table (storage.set is the next instruction after the dump)
[Image: nZQcHX3l.png]

cannot figure out why I'm loosing the key Sad
thanks
ciao
Marco
Reply


Messages In This Thread
table loose subtable in storage.set - by emme - 04.09.2022, 10:36

Forum Jump: