Skip to content

Commit

Permalink
Reverse sorting as quick fix for issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
deadda7a committed Oct 23, 2020
1 parent 40d1fbd commit 9029ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staticSiteGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def isbnFormatFunction(isbnToFormat):
logger.info("Locations: {0}".format(recordsToWrite.keys()))

templateVars = {
"locations": recordsToWrite.keys(),
"locations": sorted(recordsToWrite.keys(), reverse=True),
"firstLocation": list(recordsToWrite.keys())[0],
"generationTime": datetime.datetime.now().astimezone().replace(microsecond=0).isoformat(),
"records": recordsToWrite,
Expand Down

0 comments on commit 9029ab3

Please sign in to comment.