Add "firstRelDate" to versions.json
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 22 Oct 2023 19:52:39 +0000 (15:52 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 22 Oct 2023 19:53:53 +0000 (15:53 -0400)
We have this info available in the Version field and on the website,
so making it available in a machine-readably way simplifies allowing
people to access this data in a scriptable way.

Author: Corey Huinker <corey.huinker@gmail.com>

pgweb/core/json.py

index 842dc5290ec7bcd865db9f5ec9e694b45462f244..1d0fa180513bc26d57df0b4f587e93b63872885f 100644 (file)
@@ -8,6 +8,7 @@ def version_to_json(version):
         'major': str(version.numtree),
         'latestMinor': str(version.latestminor),
         'relDate': version.reldate,
+        'firstRelDate': version.firstreldate,
         'eolDate': version.eoldate,
         'current': version.current,
         'supported': version.supported,