Private
Public Access
1
0

passing tests

This commit is contained in:
Sander Roosendaal
2019-01-24 18:36:46 +01:00
parent 27b26922ba
commit 29e097359e
4 changed files with 5 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ from django_mailbox.models import Message, MessageAttachment,Mailbox
from django.core.urlresolvers import reverse
from django.conf import settings
from django.utils import timezone
from rowers.models import Workout, Rower
from rowingdata import rower as rrower

View File

@@ -966,18 +966,14 @@ def email_submit_race(r,race,workoutid):
record = records[0]
workouts = Workout.objects.filter(id=w.id)
print workouts
print record.id
print 'aap'
result,comments,errors,jobid = add_workout_indoorrace(
workouts,race,r,recordid=record.id
)
print result,'noot'
if result:
otherrecords = resultobj.objects.filter(
otherrecords = IndoorVirtualRaceResult.objects.filter(
race = race).exclude(userid = r.id)
for otherrecord in otherrecords:
@@ -996,13 +992,12 @@ def email_submit_race(r,race,workoutid):
return 1
else:
for error in errors:
print error
print 'fail'
return 0
else:
return 0
return 0
def race_can_register(r,race):

Binary file not shown.

View File

@@ -2502,7 +2502,7 @@
</Trackpoint>
</Track>
</Lap>
<Notes>&lt;Element 'Notes' at 0x13de37f0&gt;</Notes>
<Notes>&lt;Element 'Notes' at 0x15bdb668&gt;</Notes>
</Activity>
</Activities>
<Creator>