#94 deleted added to level 2

This commit is contained in:
UKDTOM 2020-09-20 22:58:52 +02:00
parent f3e7aff65a
commit 41929f8eb6
3 changed files with 11 additions and 6 deletions

View file

@ -136,7 +136,8 @@
"Duration",
"Added",
"Updated",
"Poster url"
"Poster url",
"Deleted"
],
"level3": [
@ -275,6 +276,12 @@
"key": "viewCount",
"call": 1,
"type": "string"
},
"Deleted":
{
"key": "$.deletedAt",
"call": 1,
"type": "datetime"
}
}
}

View file

@ -24,8 +24,6 @@
"levels": {
"Level 1": "level1",
"Level 2": "level2",
"Level 3": "level3",
"Level 4": "level4",
"devTommy": "devtommy"
},
"LevelCount": {

View file

@ -641,8 +641,8 @@ const excel2 = new class Excel {
}
break;
case "datetime":
val = JSONPath({path: String(lookup), json: data});
if ( typeof val !== 'undefined' && val )
val = JSONPath({path: String(lookup), json: data});
if ( typeof val !== 'undefined' && val && val != '')
{
// Create a new JavaScript Date object based on the timestamp
// multiplied by 1000 so that the argument is in milliseconds, not seconds.
@ -658,7 +658,7 @@ const excel2 = new class Excel {
}
else
{
val = null
val = wtconfig.get('ET.NotAvail', 'N/A')
}
break;
default: