Skip to content

Commit

Permalink
Small change to the config (Adding Server name)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanivpas committed Jun 6, 2016
1 parent c4e93df commit 1e88dc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion _config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Override these using a local_config.py file

# Server
# SERVER_NAME = '0.0.0.0:2525'
SERVER_NAME = None

# Database
DATABASE = ''
Expand All @@ -28,6 +28,7 @@
NOTIFIER_MAIL_ADDRESS = ''
MAIL_SUBJECT = ''


# End of instance specific config

# Now import and override from local_config.py
Expand Down
8 changes: 3 additions & 5 deletions mail_sender/mail_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@


def share_url():
with app.app_context():
return (url_for('notifier.share_item'))
return (url_for('notifier.share_item'))


def build_mail(user):
Expand All @@ -59,9 +58,8 @@ def build_mail(user):
except:
last_update_date = "01/01/1980"

with app.app_context():
share_link = url_for('notifier.share_item')
feed_link = url_for('notifier.feeds_editor')
share_link = url_for('notifier.share_item')
feed_link = url_for('notifier.feeds_editor')

mail.set_html(render_template('email.html', last_update_date=last_update_date,
user=user,
Expand Down

0 comments on commit 1e88dc2

Please sign in to comment.