mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 22:07:03 +00:00
working..
This commit is contained in:
@@ -572,9 +572,11 @@ def gpxupload(request, folder=None):
|
|||||||
@login_required_if_public
|
@login_required_if_public
|
||||||
def gpxfix(request):
|
def gpxfix(request):
|
||||||
"""Upload a GPX file containing a single track which is actually a single static point: for averaging
|
"""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):
|
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 True # dangerous, we should check the actual file binary signature
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user