summaryrefslogtreecommitdiffstats
path: root/parsers/QMs.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-05-31 19:21:54 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-05-31 19:21:54 +0100
commit8e577022b2e8ce3210aad79854b798e59b4706d2 (patch)
tree45d455aa0aaa6f3ee53279318e0b61f8494bf9d1 /parsers/QMs.py
parent3088727fd4ab57f5ca6c5648f5b0ffe9369fff16 (diff)
downloadtroggle-8e577022b2e8ce3210aad79854b798e59b4706d2.tar.gz
troggle-8e577022b2e8ce3210aad79854b798e59b4706d2.tar.bz2
troggle-8e577022b2e8ce3210aad79854b798e59b4706d2.zip
Reducing input print output
Diffstat (limited to 'parsers/QMs.py')
-rw-r--r--parsers/QMs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/parsers/QMs.py b/parsers/QMs.py
index 24ad7c9..e4ff29d 100644
--- a/parsers/QMs.py
+++ b/parsers/QMs.py
@@ -52,7 +52,7 @@ def parseCaveQMs(cave,inputFile):
elif cave=='hauch':
placeholder, hadToCreate = LogbookEntry.objects.get_or_create(date__year=year, title="placeholder for QMs in 234", text="QMs temporarily attached to this should be re-attached to their actual trips", defaults={"date": date(year, 1, 1),"cave":hauchHl})
if hadToCreate:
- print((cave + " placeholder logbook entry for " + str(year) + " added to database"))
+ print((" - placeholder logbook entry for " + cave + " " + str(year) + " added to database"))
QMnum=re.match(r".*?-\d*?-X?(?P<numb>\d*)",line[0]).group("numb")
newQM = QM()
newQM.found_by=placeholder
@@ -75,9 +75,9 @@ def parseCaveQMs(cave,inputFile):
if preexistingQM.new_since_parsing==False: #if the pre-existing QM has not been modified, overwrite it
preexistingQM.delete()
newQM.save()
- print(("overwriting " + str(preexistingQM) +"\r"))
+ #print((" - overwriting " + str(preexistingQM) +"\r"))
else: # otherwise, print that it was ignored
- print(("preserving " + str(preexistingQM) + ", which was edited in admin \r"))
+ print((" - preserving " + str(preexistingQM) + ", which was edited in admin \r"))
except QM.DoesNotExist: #if there is no pre-existing QM, save the new one
newQM.save()