2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 07:17:14 +00:00

Remove CaveSLug as a Class. Now each Cave has only one slug for sure.

This commit is contained in:
2024-07-12 17:18:05 +02:00
parent a4783d2332
commit 24c5ba9711
8 changed files with 17 additions and 63 deletions

View File

@@ -69,7 +69,7 @@ def store_edited_entry_into_database(date, place, title, text, others, author, t
year = slug[0:4]
expedition = Expedition.objects.get(year=year)
cave = GetCaveLookup().get(place.lower())
# print(f"{place} {cave=}")
# print(f"store_edited_entry_into_database(): {place=} {cave=}")
if LogbookEntry.objects.filter(slug=slug).exists():
# oops.
@@ -82,7 +82,7 @@ def store_edited_entry_into_database(date, place, title, text, others, author, t
"text": text,
"expedition": expedition,
"time_underground": tu,
"cave_slug": str(cave),
"cave": cave,
"title": f"{place} - {title}",
# "other_people": others
}