Fix copy/paste for .0 versions of 3-digit version numbers
authorMagnus Hagander <magnus@hagander.net>
Thu, 4 May 2023 11:01:29 +0000 (13:01 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 4 May 2023 11:01:29 +0000 (13:01 +0200)
pgweb/docs/views.py

index 1f2e39859d4d919d06010afcfa85ec2ae1d0e375..61c41f56bd176bc15868a41c82c4c6a74e5cebfb 100644 (file)
@@ -318,7 +318,7 @@ def release_notes(request, version):
         if minor_version > 0:
             version_file = 'release-{}-{}.html'.format(str(major_version).replace('.', '-'), minor_version)
         else:
-            version_file = 'release-{}-{}.html'.format(str(major_version).replace('.', '-'))
+            version_file = 'release-{}.html'.format(str(major_version).replace('.', '-'))
     elif len(version_pieces) == 2:
         # This can be either a full version (10.3) *or* it can be
         # a major version without minor (9.5).