Permalink
Browse files

add end_formatted missing

  • Loading branch information...
1 parent 567d4f1 commit 03454d58b498eeab5f9c348b54d396e8eafe401b @ChauChicken committed Jul 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugin-src/tracadvsearch/backend.py
@@ -148,6 +148,10 @@ def _date_from_range(self, start, end):
start_formatted = self._format_date(start)
else:
start_formatted = "*"
+ if end:
+ end_formatted = self._format_date(end)
+ else:
+ end_formatted = "*"
return "[%s TO %s]" % (start_formatted, end_formatted)
def _format_date(self, date_string, default="*"):

0 comments on commit 03454d5

Please sign in to comment.