Skip to content

Commit

Permalink
fix: Rename IMPORTANT_LIBRARIES as ADVERTISE_VERSIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Nov 27, 2024
1 parent c474310 commit 4d917fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ietf/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def test_api_version(self):
r = self.client.get(url)
data = r.json()
self.assertEqual(data['version'], ietf.__version__+ietf.__patch__)
for lib in settings.IMPORTANT_LIBRARIES:
for lib in settings.ADVERTISE_VERSIONS:
self.assertIn(lib, data['other'])
self.assertEqual(data['dumptime'], "2022-08-31 07:10:01 +0000")
DumpInfo.objects.update(tz='PST8PDT')
Expand Down
2 changes: 1 addition & 1 deletion ietf/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def version(request):

# important libraries
__version_extra__ = {}
for lib in settings.IMPORTANT_LIBRARIES:
for lib in settings.ADVERTISE_VERSIONS:
__version_extra__[lib] = metadata_version(lib)

return HttpResponse(
Expand Down
2 changes: 1 addition & 1 deletion ietf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ def skip_unreadable_post(record):

PUBLISH_IPR_STATES = ['posted', 'removed', 'removed_objfalse']

IMPORTANT_LIBRARIES = ["markdown", "pyang", "rfc2html", "xml2rfc"]
ADVERTISE_VERSIONS = ["markdown", "pyang", "rfc2html", "xml2rfc"]

# We provide a secret key only for test and development modes. It's
# absolutely vital that django fails to start in production mode unless a
Expand Down

0 comments on commit 4d917fb

Please sign in to comment.