Skip to content

Commit c6373cc

Browse files
committed
fix logic in hangover.py
closes NARKOZ#28
1 parent 056e9ec commit c6373cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/hangover.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
if today.strftime('%A') in ('Saturday', 'Sunday'):
1414
sys.exit()
1515

16-
# exit if no sessions with my username are found
16+
# exit if sessions with my username are found
1717
output = subprocess.check_output('who')
18-
if 'my_username' not in output:
18+
if 'my_username' in output:
1919
sys.exit()
2020

2121
# returns 'None' if the key doesn't exist
@@ -37,7 +37,7 @@
3737

3838
client.messages.create(
3939
to=number_of_boss,
40-
from=my_number,
40+
from_=my_number,
4141
body="Gonna work from home. " + random.choice(excuses)
4242
)
4343

0 commit comments

Comments
 (0)