mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 19:47:12 +00:00
Fixing cave list webpage
This commit is contained in:
@@ -4,6 +4,7 @@ import re
|
||||
import time
|
||||
import copy
|
||||
|
||||
from unipath import Path
|
||||
from datetime import datetime, timedelta
|
||||
from subprocess import call, run
|
||||
|
||||
@@ -1252,10 +1253,11 @@ def LoadPositions():
|
||||
print(" - Regenerating stale cavern .log and .3d for '{}'\n days old: {:.1f} {:.1f} {:.1f}".
|
||||
format(topdata, (svx_t - d3d_t)/(24*3600), (cav_t - d3d_t)/(24*3600), (now - d3d_t)/(24*3600)))
|
||||
call([settings.CAVERN, "--log", "--output={}".format(topdata), "{}.svx".format(topdata)])
|
||||
print(" - Regenerating {} {}.3d in {}".format(settings.THREEDTOPOS, topdata, settings.SURVEX_DATA))
|
||||
call([settings.THREEDTOPOS, '{}.3d'.format(topdata)], cwd = settings.SURVEX_DATA)
|
||||
|
||||
print(" - Regenerating {} {}.3d in {}".format(settings.SURVEXPORT, topdata, settings.SURVEX_DATA))
|
||||
call([settings.SURVEXPORT, '--pos', '{}.3d'.format(topdata)], cwd = settings.SURVEX_DATA)
|
||||
|
||||
topdata = settings.SURVEX_DATA + settings.SURVEX_TOPNAME
|
||||
topdata = settings.SURVEX_DATA.child(settings.SURVEX_TOPNAME)
|
||||
print((' - Generating a list of Pos from %s.svx and then loading...' % (topdata)))
|
||||
|
||||
found = 0
|
||||
|
||||
Reference in New Issue
Block a user