2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 18:47:18 +00:00

working..

This commit is contained in:
2025-09-06 17:39:39 +03:00
parent 19c3f02c2d
commit a7152b591d

View File

@@ -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