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

Rename lookupAttribs and nonLookupAttribs + add slug to Person

This commit is contained in:
2023-10-01 12:42:47 +03:00
parent fd94909ee7
commit 16d3ee9f92
7 changed files with 42 additions and 39 deletions

View File

@@ -173,7 +173,7 @@ def parse_KH_QMs(kh, inputFile, ticked):
resolution_station_name = station_name.replace("<a href=\"","<a href=\"/1623/161/")
else:
nearest_station_name = station_name.replace("<a href=\"","<a href=\"/1623/161/")
lookupAttribs = {
coUniqueAttribs = {
#'found_by':placeholder,
"blockname": "",
"expoyear": year,
@@ -181,7 +181,7 @@ def parse_KH_QMs(kh, inputFile, ticked):
"cave": kh,
"grade": res["grade"],
}
nonLookupAttribs = {
otherAttribs = {
"ticked": ticked,
"page_ref": "",
"completion_description": completion,
@@ -190,7 +190,7 @@ def parse_KH_QMs(kh, inputFile, ticked):
"location_description": res["location_description"].replace("<a href=\"","<a href=\"/1623/161/"),
}
# Create new. We know it doesn't exist as we deleted evrything when we started.
instance = QM.objects.create(**nonLookupAttribs, **lookupAttribs)
instance = QM.objects.create(**otherAttribs, **coUniqueAttribs)
nqms += 1
else:
if dataline.startswith("<dt><a href"):