#check if placeholder exists for given year, create it if not
ifcave=='stein':
placeholder,hadToCreate=LogbookEntry.objects.get_or_create(date__year=year,text="placeholder for QMs in 204",defaults={"date":date(year,1,1),"cave":steinBr})
elifcave=='hauch':
placeholder,hadToCreate=LogbookEntry.objects.get_or_create(date__year=year,text="placeholder for QMs in 234",defaults={"date":date(year,1,1),"cave":hauchHl})
ifhadToCreate:
printcave+" placeholder logbook entry for "+str(year)+" added to database"
ifnewQM.completion_description:# Troggle checks if QMs are completed by checking if they have a ticked_off_by trip. In the table, completion is indicated by the presence of a completion discription.