[billreminder/fresh] Show upcoming bills for selected month only.
- From: Og B. Maciel <ogmaciel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [billreminder/fresh] Show upcoming bills for selected month only.
- Date: Fri, 22 Jan 2010 18:18:20 +0000 (UTC)
commit 796dc99dc9e52f12ab3953f692b1c430cea568e4
Author: Og B. Maciel <ogmaciel gnome org>
Date: Fri Jan 22 13:17:42 2010 -0500
Show upcoming bills for selected month only.
src/gui/new.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/new.py b/src/gui/new.py
index cd80a77..2cc9c4a 100755
--- a/src/gui/new.py
+++ b/src/gui/new.py
@@ -59,7 +59,8 @@ class MainWindow:
start_date, end_date = self.start_date, self.end_date
if 1 in self.filtered_types: # upcoming
- start_date = dt.date.today() + dt.timedelta(days = 1)
+ # Make sure to show upcoming bills for the selected month only.
+ start_date = max(self.start_date, dt.date.today() + dt.timedelta(days = 1))
bills = self.actions.get_interval_bills(start_date, end_date)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]