git » el » commit deadeaf

Aesthetic improvements in listings

author Alberto Bertogli
2010-06-24 23:20:05 UTC
committer Alberto Bertogli
2010-06-24 23:20:05 UTC
parent e5def328c85c8aad5a9a8460f8d92aebc6192799

Aesthetic improvements in listings

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

el +8 -1

diff --git a/el b/el
index 3f23fb6..bc67a03 100755
--- a/el
+++ b/el
@@ -307,7 +307,14 @@ def main():
 		for evt in db.events:
 			if when and evt.date != when:
 				continue
-			print evt.date, evt.msg
+			elif not when:
+				if evt.date < datetime.date.today():
+					continue
+
+			flag = " "
+			if evt.date == datetime.date.today():
+				flag = "*"
+			print flag, evt.date, evt.msg
 
 	else:
 		if len(args) < 2: