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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user