Skip to content

Commit

Permalink
Fixing env variable retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
scrappycat committed Mar 19, 2017
1 parent d3eb84b commit 2f87842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -13,7 +13,7 @@

now = datetime.now(timezone('Australia/Melbourne'))

if int(os.environ("MORPH_RUN_DAILY")) > 0:
if int(os.environ['MORPH_RUN_DAILY']) > 0:

# Bail if run on weekend
if now.strftime("%A") in ["Saturday", "Sunday"]:
Expand Down

0 comments on commit 2f87842

Please sign in to comment.