first result working
This commit is contained in:
@@ -17,6 +17,10 @@ def save_scoring(name,user,filename,id=0,notes=""):
|
||||
collection.name = name
|
||||
collection.notes = notes
|
||||
collection.save()
|
||||
standards = CourseStandard.objects.filter(standardcollection=collection)
|
||||
for standard in standards:
|
||||
print(standard,collection)
|
||||
standard.delete()
|
||||
|
||||
except StandardCollection.DoesNotExist:
|
||||
return 0
|
||||
@@ -56,6 +60,20 @@ def save_scoring(name,user,filename,id=0,notes=""):
|
||||
|
||||
try:
|
||||
boatclass = row['BoatClass']
|
||||
if boatclass.lower() in ['standard','olympic','normal']:
|
||||
boatclass = 'water'
|
||||
elif boatclass.lower() in ['erg','c2','concept','static']:
|
||||
boatclass = 'rower'
|
||||
elif boatclass.lower() in ['dynamic']:
|
||||
boatclass = 'dynamic'
|
||||
elif boatclass.lower() in ['slides','slide','slider','sliders']:
|
||||
boatclass = 'slides'
|
||||
elif boatclass.lower() in ['c','c-boat']:
|
||||
boatclass = 'c-boat'
|
||||
elif boatclass.lower() in ['coastal','coast']:
|
||||
boatclass = 'coastal'
|
||||
elif boatclass.lower() in ['church','churchboat','finnish','finland']:
|
||||
boatclass = 'churchboat'
|
||||
except KeyError:
|
||||
boatclass = 'water'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user