From 08d947b5c23229baab085e61ff8868cb82039bc0 Mon Sep 17 00:00:00 2001 From: Thuruv Date: Tue, 24 Nov 2015 10:44:15 +0530 Subject: [PATCH] Update same as coffe's script --- python/hangover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/hangover.py b/python/hangover.py index 676429a..77958f3 100755 --- a/python/hangover.py +++ b/python/hangover.py @@ -10,7 +10,7 @@ import subprocess today = datetime.date.today() # skip weekends -if today.strftime('%A') == 'Saturday' || today('%A') == 'Sunday': +if today.strftime('%A') in ('Saturday', 'Sunday'): sys.exit() # exit if no sessions with my username are found