Commit 1f649cfb authored by FulcrandG's avatar FulcrandG
Browse files

Reversing version order in documentation of jobs

parent 3843c42a
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -59,15 +59,13 @@ def get_description(job_path):
        return readme_file.read()

def get_changelogs(job_path, job_name):

    versions = listdir(job_path + "/" + JOB_CHANGELOG_DIR).reverse()
    latest = {
      "version": listdir(job_path + "/" + JOB_CHANGELOG_DIR)[-1][0:-3],
      "version": versions[0][0:-3],
      "url": GO2SCALE_URL + job_name + ".yml"
    }

    changelogs = []

    for version in listdir(job_path + "/" + JOB_CHANGELOG_DIR).reverse():
    for version in versions:
        with open(job_path + "/" + JOB_CHANGELOG_DIR + "/" + version) as changelog_file:
            changelogs.append({
                "version": version[0:-3],