mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 18:47:18 +00:00
working..
This commit is contained in:
@@ -572,9 +572,11 @@ def gpxupload(request, folder=None):
|
||||
@login_required_if_public
|
||||
def gpxfix(request):
|
||||
"""Upload a GPX file containing a single track which is actually a single static point: for averaging
|
||||
<!-- re do all this to autogenerate the form using Django magic stuff -->
|
||||
|
||||
"""
|
||||
def gpxvalid(name):
|
||||
if Path(name).suffix.lower() in [".xml", ".gpx"]:
|
||||
if Path(name).suffix.lower() in [".gpx"]:
|
||||
return True # dangerous, we should check the actual file binary signature
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user