From 600c0f35c7a9c53b7af2d0f26d8f135558550078 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 16 Apr 2024 20:13:33 -0700 Subject: Add the modified field to the JSON bugs index This brings it in line with the vulnerabilities index. --- tmpl/bugs.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmpl/bugs.json b/tmpl/bugs.json index 375e7f7..53da837 100644 --- a/tmpl/bugs.json +++ b/tmpl/bugs.json @@ -1,9 +1,10 @@ +[%- USE date -%] [ [%- FOR adv IN advdb.sorted -%] [% USE advid = String(basename.ID(adv)) -%] [% IF advid.search('^MGAA-') -%] [%- "," IF gotone %] -{"id": "[% basename.ID(adv) %]"} +{"id": "[% basename.ID(adv) %]","modified": "[% date.format(advdb.advisories.$adv.status.modified, format => '%Y-%m-%dT%H:%M:%SZ', gmt => 1) %]"} [%- SET gotone = 1 %] [%- END %] [%- END %] -- cgit v1.2.1