hamster-applet r808 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r808 - trunk/hamster
- Date: Fri, 27 Feb 2009 11:51:51 +0000 (UTC)
Author: tbaugis
Date: Fri Feb 27 11:51:51 2009
New Revision: 808
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=808&view=rev
Log:
showing also current ongoing activity
Modified:
trunk/hamster/edit_activity.py
Modified: trunk/hamster/edit_activity.py
==============================================================================
--- trunk/hamster/edit_activity.py (original)
+++ trunk/hamster/edit_activity.py Fri Feb 27 11:51:51 2009
@@ -312,7 +312,8 @@
if fact["end_time"]:
end_minutes = self._minutes_from_start(fact["end_time"])
else:
- end_minutes = start_minutes
+ if fact["start_time"].date() == dt.date.today():
+ end_minutes = self._minutes_from_start(dt.datetime.now())
if (self.graph_x + end_minutes * minute_pixel) > 0 and \
(self.graph_x + start_minutes * minute_pixel) < self.width:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]