home · contact · privacy
Extend default date range to full year.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 9 Jun 2024 02:06:58 +0000 (04:06 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 9 Jun 2024 02:06:58 +0000 (04:06 +0200)
plomtask/http.py

index cf8a8290ab35046124fc1db6f42418af7b42aea0..87f600a73c03f55bb3bb51cfbb3d79444d3b687e 100644 (file)
@@ -123,7 +123,7 @@ class TaskHandler(BaseHTTPRequestHandler):
         start = self.params.get_str('start')
         end = self.params.get_str('end')
         if not end:
         start = self.params.get_str('start')
         end = self.params.get_str('end')
         if not end:
-            end = date_in_n_days(60)
+            end = date_in_n_days(366)
         ret = Day.by_date_range_with_limits(self.conn, (start, end), 'id')
         days, start, end = ret
         days = Day.with_filled_gaps(days, start, end)
         ret = Day.by_date_range_with_limits(self.conn, (start, end), 'id')
         days, start, end = ret
         days = Day.with_filled_gaps(days, start, end)