Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: filters/teamsort.py

Issue 29334171: Issue 3410 - Added date sort / format for press releases (Closed)
Patch Set: Fixed import Created Feb. 4, 2016, 11:12 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « filters/humanize_date.py ('k') | includes/press/releases.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filters/teamsort.py
diff --git a/filters/datesort.py b/filters/teamsort.py
similarity index 84%
copy from filters/datesort.py
copy to filters/teamsort.py
index 9d4c6479de4eaa0dd360520a4906eb7513f53021..bac98cb576a58cd942053ac4ad6252ada980f71d 100644
--- a/filters/datesort.py
+++ b/filters/teamsort.py
@@ -1,6 +1,6 @@
import datetime, random
-def datesort(value, basedate="1970-01-01", column=0):
+def teamsort(value, basedate="1970-01-01", column=0):
base = datetime.datetime.strptime(basedate, "%Y-%m-%d")
def randdiff(entry):
date = datetime.datetime.strptime(entry[column], "%Y-%m-%d")
« no previous file with comments | « filters/humanize_date.py ('k') | includes/press/releases.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld