Skip to content
Permalink
Browse files

Redirect NA request to HA

WHO builds are only being done with HA. Redirect /na/ to /ha/.
  • Loading branch information...
trvrb committed Feb 12, 2019
1 parent 033ab98 commit 373974259264c83afa2d47202a61513abfc11643
Showing with 10 additions and 0 deletions.
  1. +10 −0 auspice/provision_directories.py
@@ -421,6 +421,16 @@ def printdir():
indexfile.write("---\n")
indexfile.close()

elif segment == "NA":

indexfile = open("index.html", "w")
indexfile.write("---\n")
indexfile.write("title: nextflu / %s / %s / %s / %s / %s / %s \n" % (build, virus, segment, resolution, passage, assay))
indexfile.write("layout: redirect\n")
indexfile.write("rurl: /%s/%s/ha/%s/%s/%s/\n" % (bpath, vpath, rpath, ppath, apath))
indexfile.write("---\n")
indexfile.close()

else:

indexfile = open("index.html", "w")

0 comments on commit 3739742

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.