Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Deactivated auto refresh if displayed day is not today
Browse files Browse the repository at this point in the history
  • Loading branch information
philipptrenz committed Oct 7, 2018
1 parent cbe23d9 commit 1d37e69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sunportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def update():

if __name__ == '__main__':
try:
if mail.is_enabled is True: mail.start()
if mail.is_enabled: mail.start()
app.run(host='0.0.0.0', port=80)
except:
db.close()
Expand Down
4 changes: 2 additions & 2 deletions util/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, config, database):
self.config = config
self.db = database
self.mail_config = self.config.get_mail_config()
self.is_enabled = self.mail_config["enabled"]
self.is_enabled = self.mail_config["enabled"] == 'true'
self.stop_threads = False
self.sent_messages = dict()

Expand Down Expand Up @@ -145,4 +145,4 @@ def join(self):
db = Database(cfg)

mail = Mail(cfg, db)
mail.send_mail('test mail', 'this is your test mail', debug=True)
mail.send_mail('test mail', 'this is your test mail', debug=True)

0 comments on commit 1d37e69

Please sign in to comment.