2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 07:28:45 +00:00

Fixed weird QM issues, all working

This commit is contained in:
2026-01-30 03:32:15 +00:00
parent 3e203f992e
commit 2141dc1eba
3 changed files with 48 additions and 51 deletions

View File

@@ -83,6 +83,7 @@ def parseCaveQMs(cave, inputFile, ticked=False):
QMnum = re.match(r".*?-\d*?-X?(?P<numb>\d*)", line[0]).group("numb")
newQM = QM() # creates python object, does not touch db yet
# newQM.found_by=placeholder
newQM.loaded_from_csv = True
newQM.number = QMnum
newQM.cave = caveid
newQM.expoyear = year
@@ -181,7 +182,8 @@ def parse_KH_QMs(kh, inputFile, ticked):
"cave": kh,
"grade": res["grade"],
}
otherAttribs = {
otherAttribs = {
"loaded_from_csv": True,
"ticked": ticked,
"page_ref": "",
"completion_description": completion,