Private
Public Access
1
0

Merge branch 'release/v6.74'

This commit is contained in:
Sander Roosendaal
2018-05-27 10:44:56 +02:00
3 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -2194,7 +2194,7 @@ class SiteAnnouncement(models.Model):
status = tweetapi.PostUpdate(self.announcement)
except:
try:
status = tweetapi.PostUpdate(self.announcement[:135])
status = tweetapi.PostUpdate(self.announcement[:270])
except:
pass
return super(SiteAnnouncement,self).save(*args, **kwargs)
+18 -3
View File
@@ -8480,11 +8480,11 @@ def workout_flexchart3_view(request,*args,**kwargs):
reststrokes = not workstrokesonly
r = getrower(request.user)
try:
r = metrics.yaxmaxima[xparam]
range = metrics.yaxmaxima[xparam]
if yparam1 is not None:
r = metrics.yaxmaxima[yparam1]
range = metrics.yaxmaxima[yparam1]
if yparam2 is not None:
r = metrics.yaxmaxima[yparam2]
range = metrics.yaxmaxima[yparam2]
f = FavoriteChart(user=r,xparam=xparam,
yparam1=yparam1,yparam2=yparam2,
plottype=plottype,workouttype=workouttype,
@@ -13665,7 +13665,22 @@ def virtualevent_create_view(request):
vs.save()
# create Site Announcement & Tweet
if settings.DEBUG:
dotweet = False
elif 'dev' in settings.SITE_URL:
dotweet = False
else:
dotweet = True
sa = SiteAnnouncement(
announcement = "New Virtual Race on rowsandall.com: {name} on course {course}".format(
name = name,
course = course.name.encode('utf8')
),
dotweet = dotweet
)
sa.save()
url = reverse(virtualevents_view)
return HttpResponseRedirect(url)
+2 -2
View File
@@ -227,11 +227,11 @@
{% endif %}
</div>
<div class="grid_1 tooltip">
{% block teams %}
{% block challenges %}
{% endblock %}
</div>
<div class="grid_1 tooltip">
{% block challenges %}
{% block teams %}
{% endblock %}
</div>
</div>