2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-05-12 20:20:25 +01:00

update to-dos

This commit is contained in:
2026-05-12 02:13:34 +01:00
parent 211465247d
commit 5efac62ecb
+3 -5
View File
@@ -439,7 +439,7 @@ def process_new_hole(form, area):
Cave (if cave description, but probably not)
Survex new (needs new creation page) (date, people, cave id)
+ list of "happened this day" at the bottom, as for other pages.
⚡ write new wallet if wallet does not exist yet, with people, date etc.
⚡Update the database "locations" with the new *fix (is this even possible 🧩 without reset?)
writes:
@@ -452,7 +452,7 @@ def process_new_hole(form, area):
fix_id = f"{area}.g{form.cleaned_data.get("cave_id").lower()}"
_newfix(form, area, editor, fix_id)
# ⚡ tidy this
cave = _makecave(form, area)
_newent(form, area, editor, fix_id, cave) # yes, make the Entrance first
_savecave(form, area, editor, cave)
@@ -583,9 +583,7 @@ def _makecave(form, areacode):
def _savecave(form, areacode, editor, cave):
cave.save()
# need a CaveForm f we do it this way, which is a ModelForm.
# form.save_m2m() # this does the many-to-many relationship saving between caves and entrances
# can we do this manually?
try:
cave_file = cave.file_output()
write_and_commit([cave_file], f"Creating new cave {cave}", editor)