summaryrefslogtreecommitdiffstats
path: root/core/views
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-07 02:26:52 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-07 02:26:52 +0300
commit5f67af35f019e7054b9ce6de521b3fc96f5b0dc3 (patch)
treeb3ddad71a528cfb5ff07d8617e09bad4455d16c3 /core/views
parentc3642f1ae434e8d1e5e7442670f936c4004bec98 (diff)
downloadtroggle-5f67af35f019e7054b9ce6de521b3fc96f5b0dc3.tar.gz
troggle-5f67af35f019e7054b9ce6de521b3fc96f5b0dc3.tar.bz2
troggle-5f67af35f019e7054b9ce6de521b3fc96f5b0dc3.zip
Better tag locations
Diffstat (limited to 'core/views')
-rw-r--r--core/views/caves.py4
-rw-r--r--core/views/prospect.py2
-rw-r--r--core/views/statistics.py6
3 files changed, 6 insertions, 6 deletions
diff --git a/core/views/caves.py b/core/views/caves.py
index cdac66d..5f939dc 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -432,7 +432,7 @@ def edit_cave(request, path="", slug=None):
"cave": cave,
"message": message,
#"caveAndEntranceFormSet": ceFormSet,
- "path": path + "/",
+ "path": path + "/", # used for saving images if attached
},
)
@@ -552,7 +552,7 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
"entletter": entletter,
"entletterform": entletterform, # is unset if not being used
"entlettereditable": entlettereditable,
- "path": path + "/",
+ "path": path + "/", # used for saving images if attached
},
)
diff --git a/core/views/prospect.py b/core/views/prospect.py
index 1eb82cd..e9d3fde 100644
--- a/core/views/prospect.py
+++ b/core/views/prospect.py
@@ -237,7 +237,7 @@ def prospecting_image(request, name):
(35323.60, 81357.83, 50, "74"), # From Auer map
]:
(N, E, D) = list(map(float, (N, E, D)))
- maparea = Cave.objects.get(kataster_number=num).getArea().short_name
+ maparea = Cave.objects.get(kataster_number=num).areacode
lo = mungecoord(N - D, E + D, name, img)
hi = mungecoord(N + D, E - D, name, img)
lpos = mungecoord(N - D, E, name, img)
diff --git a/core/views/statistics.py b/core/views/statistics.py
index d2544e0..2927bd3 100644
--- a/core/views/statistics.py
+++ b/core/views/statistics.py
@@ -289,17 +289,17 @@ def eastings(request):
ts = e.tag_station
if ts:
e.tag_ts = SurvexStation.objects.get(name=ts)
- print(f"{e} {e.tag_ts} {e.tag_ts.lat()} {e.tag_ts.long()}")
+ #print(f"{e} {e.tag_ts} {e.tag_ts.lat()} {e.tag_ts.long()}")
es = e.exact_station
if es:
e.tag_es = SurvexStation.objects.get(name=es)
- print(f"{e} {e.tag_es} {e.tag_es.lat()} {e.tag_es.long()}")
+ #print(f"{e} {e.tag_es} {e.tag_es.lat()} {e.tag_es.long()}")
os = e.other_station
if os:
e.tag_os = SurvexStation.objects.get(name=os)
- print(f"{e} {e.tag_os} {e.tag_os.lat()} {e.tag_os.long()}")
+ #print(f"{e} {e.tag_os} {e.tag_os.lat()} {e.tag_os.long()}")
except:
e.tag_ss = None