Merge branch 'release/v6.74'
This commit is contained in:
+1
-1
@@ -2194,7 +2194,7 @@ class SiteAnnouncement(models.Model):
|
|||||||
status = tweetapi.PostUpdate(self.announcement)
|
status = tweetapi.PostUpdate(self.announcement)
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
status = tweetapi.PostUpdate(self.announcement[:135])
|
status = tweetapi.PostUpdate(self.announcement[:270])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return super(SiteAnnouncement,self).save(*args, **kwargs)
|
return super(SiteAnnouncement,self).save(*args, **kwargs)
|
||||||
|
|||||||
+19
-4
@@ -8480,11 +8480,11 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
|||||||
reststrokes = not workstrokesonly
|
reststrokes = not workstrokesonly
|
||||||
r = getrower(request.user)
|
r = getrower(request.user)
|
||||||
try:
|
try:
|
||||||
r = metrics.yaxmaxima[xparam]
|
range = metrics.yaxmaxima[xparam]
|
||||||
if yparam1 is not None:
|
if yparam1 is not None:
|
||||||
r = metrics.yaxmaxima[yparam1]
|
range = metrics.yaxmaxima[yparam1]
|
||||||
if yparam2 is not None:
|
if yparam2 is not None:
|
||||||
r = metrics.yaxmaxima[yparam2]
|
range = metrics.yaxmaxima[yparam2]
|
||||||
f = FavoriteChart(user=r,xparam=xparam,
|
f = FavoriteChart(user=r,xparam=xparam,
|
||||||
yparam1=yparam1,yparam2=yparam2,
|
yparam1=yparam1,yparam2=yparam2,
|
||||||
plottype=plottype,workouttype=workouttype,
|
plottype=plottype,workouttype=workouttype,
|
||||||
@@ -13665,7 +13665,22 @@ def virtualevent_create_view(request):
|
|||||||
|
|
||||||
vs.save()
|
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)
|
url = reverse(virtualevents_view)
|
||||||
return HttpResponseRedirect(url)
|
return HttpResponseRedirect(url)
|
||||||
|
|||||||
@@ -227,11 +227,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="grid_1 tooltip">
|
<div class="grid_1 tooltip">
|
||||||
{% block teams %}
|
{% block challenges %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<div class="grid_1 tooltip">
|
<div class="grid_1 tooltip">
|
||||||
{% block challenges %}
|
{% block teams %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user