update caves from new cave file format not cavetab2.csv

This commit is contained in:
Martin Green 2012-06-10 17:16:33 +01:00
parent 0d346c80f7
commit f369f34c8f

View File

@ -37,13 +37,6 @@ def make_dirs():
if not os.path.isdir(settings.PHOTOS_ROOT): if not os.path.isdir(settings.PHOTOS_ROOT):
os.mkdir(settings.PHOTOS_ROOT) os.mkdir(settings.PHOTOS_ROOT)
def import_cavetab():
import parsers.cavetab
print "importing cavetab"
parsers.cavetab.LoadCaveTab()
def import_caves(): def import_caves():
import parsers.caves import parsers.caves
print "importing caves" print "importing caves"
@ -101,7 +94,7 @@ def reset():
reload_db() reload_db()
make_dirs() make_dirs()
pageredirects() pageredirects()
import_cavetab() import_caves()
import_people() import_people()
import_surveyscans() import_surveyscans()
import_survex() import_survex()
@ -203,11 +196,6 @@ if __name__ == "__main__":
resetdesc() resetdesc()
elif "scans" in sys.argv: elif "scans" in sys.argv:
import_surveyscans() import_surveyscans()
elif "caves" in sys.argv:
reload_db()
make_dirs()
pageredirects()
import_cavetab()
elif "cavesnew" in sys.argv: elif "cavesnew" in sys.argv:
reload_db() reload_db()
make_dirs() make_dirs()