aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/bugs.json
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-04-16 20:13:33 -0700
committerDan Fandrich <danf@mageia.org>2024-04-16 20:13:33 -0700
commit600c0f35c7a9c53b7af2d0f26d8f135558550078 (patch)
treee5678b9f1ebf187390b19be308339cbf10d45685 /tmpl/bugs.json
parent6fb12d2bfe8a7360103f07e18197ba5d280989b1 (diff)
downloadmgaadvisories-600c0f35c7a9c53b7af2d0f26d8f135558550078.tar
mgaadvisories-600c0f35c7a9c53b7af2d0f26d8f135558550078.tar.gz
mgaadvisories-600c0f35c7a9c53b7af2d0f26d8f135558550078.tar.bz2
mgaadvisories-600c0f35c7a9c53b7af2d0f26d8f135558550078.tar.xz
mgaadvisories-600c0f35c7a9c53b7af2d0f26d8f135558550078.zip
Add the modified field to the JSON bugs index
This brings it in line with the vulnerabilities index.
Diffstat (limited to 'tmpl/bugs.json')
-rw-r--r--tmpl/bugs.json3
1 files changed, 2 insertions, 1 deletions
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 %]