diff options
Diffstat (limited to 'parsers/QMs.py')
-rw-r--r-- | parsers/QMs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parsers/QMs.py b/parsers/QMs.py index 56c97e4..9691ce7 100644 --- a/parsers/QMs.py +++ b/parsers/QMs.py @@ -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"): |