aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
authorGravatar momothereal <[email protected]>2018-06-24 12:46:17 -0400
committerGravatar momothereal <[email protected]>2018-06-24 12:46:17 -0400
commit401c43ef7ae83a3f46743299cf8055af03815888 (patch)
tree4adcf1cd09057b5198e6407d2486b1df5297633e /pysite
parent[Jams] Fix margin on theme label (diff)
[Jams/Teams] Add day padding to activity feed, disabled submit button to avoid spam
Diffstat (limited to 'pysite')
-rw-r--r--pysite/views/main/jams/team_view.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pysite/views/main/jams/team_view.py b/pysite/views/main/jams/team_view.py
index 8be8bc0f..6b5d86ce 100644
--- a/pysite/views/main/jams/team_view.py
+++ b/pysite/views/main/jams/team_view.py
@@ -1,3 +1,4 @@
+import datetime
import logging
from rethinkdb import ReqlNonExistenceError
@@ -44,5 +45,9 @@ class JamsTeamView(RouteView, DBMixin, OAuthMixin):
return self.render(
"main/jams/team_view.html",
- team=team, is_own_team=is_own_team
+ team=team, is_own_team=is_own_team, day_delta=self.day_delta
)
+
+ def day_delta(self, date, delta):
+ # util to add or subtract days from a date
+ return date + datetime.timedelta(days=delta)