[gnome-clocks] AlarmItem: Change syntax in _get_is_light()
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] AlarmItem: Change syntax in _get_is_light()
- Date: Sun, 2 Dec 2012 10:51:22 +0000 (UTC)
commit af57921336bb7870cd0db71b9a0ae01d850c4c35
Author: Volker Sobek <reklov live com>
Date: Sun Dec 2 11:49:17 2012 +0100
AlarmItem: Change syntax in _get_is_light()
Use the same syntax as in ClockItem.
gnomeclocks/alarm.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 42072d8..f2077e2 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -127,7 +127,7 @@ class AlarmItem:
return ", ".join(days)
def _get_is_light(self):
- return self.hour > 7 and self.hour < 19
+ return 7 <= self.hour <= 19
def snooze(self):
self.is_snoozing = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]