Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-07-10 10:27:35 +02:00
parent ecb49a580e
commit a1a54be22d
2 changed files with 9 additions and 18 deletions

View File

@@ -123,12 +123,12 @@
</p> </p>
<h2>On-line Racing</h2> <h2>On-line Challenges</h2>
<p> <p>
<a href="/rowers/virtualevents">On-line racing</a> is a <a href="/rowers/virtualevents">On-line challenges</a> are a
fun way to race other Rowsandall.com users fun way to test your boat speed and course line against other Rowsandall.com users
rowing on the same stretch of water. rowing on the same stretch of water or on the Concept2 ergometer.
</p> </p>
<h2>Training Plan</h2> <h2>Training Plan</h2>

View File

@@ -1035,11 +1035,7 @@ def garmin_summaries_view(request):
def garmin_newfiles_ping(request): def garmin_newfiles_ping(request):
t = time.localtime() t = time.localtime()
timestamp = time.strftime('%b-%d-%Y_%H%M', t) timestamp = time.strftime('%b-%d-%Y_%H%M', t)
with open('garminlog.log','a') as f:
f.write('\n')
f.write(timestamp)
f.write(' ')
f.write(str(request.body))
if request.method != 'POST': if request.method != 'POST':
return HttpResponse(status=200) return HttpResponse(status=200)
@@ -1090,11 +1086,6 @@ def garmin_details_view(request):
t = time.localtime() t = time.localtime()
timestamp = time.strftime('%b-%d-%Y_%H%M', t) timestamp = time.strftime('%b-%d-%Y_%H%M', t)
with open('garminlog.log','a') as f:
f.write('\n')
f.write(timestamp)
f.write(' ')
f.write(str(request.body))
# POST request # POST request
data = json.loads(request.body) data = json.loads(request.body)