[hamster-applet] don't care which is start and which end time



commit 5488655c5b57f92b40f97254cc6f5cf2d5ed96ae
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun Dec 20 18:10:51 2009 +0000

    don't care which is start and which end time

 hamster/stats.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/hamster/stats.py b/hamster/stats.py
index 1d03446..aa61932 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -99,6 +99,9 @@ class StatsViewer(object):
         self.search()
 
     def search(self):
+        if self.start_date > self.end_date: # make sure the end is always after beginning
+            self.start_date, self.end_date = self.end_date, self.start_date
+        
         self.start_date_input.set_date(self.start_date)
         self.end_date_input.set_date(self.end_date)
         



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]