[hamster-applet] skip ongoing facts in ical



commit 35d16769102e21cf61b35de033557f7a3b45a5ce
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun Jun 7 16:03:49 2009 +0100

    skip ongoing facts in ical
---
 hamster/reports.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hamster/reports.py b/hamster/reports.py
index 19f14ed..09610da 100644
--- a/hamster/reports.py
+++ b/hamster/reports.py
@@ -84,6 +84,9 @@ class ICalWriter(ReportWriter):
 
     
     def _write_fact(self, file, fact):
+        #for now we will skip ongoing facts
+        if not fact["end_time"]: return
+
         if fact["category"] == _("Unsorted"):
             fact["category"] = None
             



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