From 3131a9fdab45f12b4e0a1548596c8d5ef1a29f50 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 30 Mar 2017 13:41:31 +0200 Subject: [PATCH] improved partners text and bugfix on cumstats page --- rowers/templates/partners.html | 76 ++++++++++++++++++++++++---------- rowers/views.py | 3 +- 2 files changed, 56 insertions(+), 23 deletions(-) diff --git a/rowers/templates/partners.html b/rowers/templates/partners.html index e6e27d5d..59ecac1d 100644 --- a/rowers/templates/partners.html +++ b/rowers/templates/partners.html @@ -6,32 +6,61 @@

Are you interested in partnering with Rowsandall.com?

+

The founding principle for rowsandall.com was, and still is, free data + and analysis for rowers. Fulfilling that mission means that we try to test + and support as many widely used rowing related hardware and software + products as possible. Since these products typically have rapid update + cycles for bug fixes and new features, having ready access to the + products enables us to keep rowsandall.com working well.

+ +

At the same time, one of the most powerful marketing and publicity + for niche products like rowing gear is word of mouth reviews and + endorsements from "real" users.

+ +

To try to keep rowsandall.com non-commercial and brand neutral, we have + the following principles for collaboration.

+

We are open to working together with partners serving the rowing community. To maintain maximum transparency to our users, we have the following principles for collaboration:

-
    -
  1. On blog.rowsandall.com, analytics.rowsandall.com and in through +

    On blog.rowsandall.com, analytics.rowsandall.com and through our Twitter account, we write about hardware, software, and other - rowing related kit that we have used, tested, and are enthusiastic about.

  2. -
  3. If you send us a unit, or a piece of software to test, we will not - write a public review about it. If we like the unit (software, etc) and - keep using it, you may see it appear in our blog posts. If there are - reasons why we are not satisfied with the unit, but we feel that - an improved version would serve the rowing community, we will contact - you with constructive criticism. We will do our best not to mention - your product in - a negative way on our public blogs or twitter. However, we retain the - freedom to engage in online discussions about your product, but will - try to keep our communication factual.
  4. -
  5. We encourage vendors to send us their products for testing. We are - especially interested in software and hardware used for indoor and - on-the-water rowing. We want to avoid the hassle of sending back - your products, so we will not send back any item that has a value of - less than 1000 EURO. If you want us to test an item of higher value, - please mention this when you contact us.
  6. -
+ rowing related kit that we have used, tested, and are enthusiastic about.

+

+

    +
  1. We welcome evaluation hardware and software products to try + out.
  2. +
  3. We make no specific commitment in exchange for these products.
  4. +
  5. We do not formally publish product reviews, however, we may or + may not + mention your product + on blog.rowsandall.com + or + analytics.rowsandall.com.
  6. +
  7. If there are reasons why we are not satisfied with the unit, but + we feel that an improved version would serve the rowing community, + we may contact you with constructive criticism. We try to not mention + your product in a negative way on our public blogs or twitter. + However, we retain the freedom to engage in online discussions + about your product, but will try to keep our communication + factual.
  8. +
  9. We encourage vendors to send us their products for testing. + We are especially interested in software and hardware used + for indoor and + on-the-water rowing.
  10. +
  11. We do not accept equipment on loan. This is our policy because + this is an informal collaboration, we do not have the ability + to accept financial responsibility for loss, breakage or return + shipping.
  12. +
+

+ +

For evaluation consideration, please contact us + at info@rowsandall.com with + information about your product/service including any important + links or images prior to sending the product.

@@ -56,8 +85,11 @@ a reduced rate) a "block" of Pro membership coupons.
  • Advertising. If you decide to support rowsandall.com through advertising, we will create a top banner where you as a sponsor - have space to put up a clickable picture. Price and content open - for negotiation.
  • + have space to put up a clickable static picture. Contact us for + rates and details on the size of the advertisement and possible + duration of the campaign. We reserve the right to decline + advertisement that don't add value to the rowing community or aren't + a good fit for the audience and content of the site.
  • Collaboration on prototypes or beta versions of your new products (or product upgrades). You send us a product ahead of release (under a confidentiality agreement) and we use it and provide feedback. diff --git a/rowers/views.py b/rowers/views.py index c5dddf18..d48fc436 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -3,6 +3,7 @@ import timestring import zipfile import operator import warnings +from numbers import Number from django.views.generic.base import TemplateView from django.db.models import Q from django.db import IntegrityError, transaction @@ -3377,7 +3378,7 @@ def cumstats(request,theuser=0, deltaform = DeltaDaysForm(request.POST) if deltaform.is_valid(): deltadays = deltaform.cleaned_data['deltadays'] - if deltadays != 0: + if deltadays != 0 and isinstance(deltadays, Number): enddate = timezone.now() startdate = enddate-datetime.timedelta(days=deltadays) if startdate > enddate: