Skip to content

Commit

Permalink
delete email stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rbs333 committed Apr 30, 2019
1 parent f4831c3 commit 908edb3
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions myapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
from simulation.sim import Simulation
import json

""" for email feature
# from email_credentials import credentials
# from flask_mail import Mail
# from flask_mail import Message
"""
class CustomFlask(Flask):
jinja_options = Flask.jinja_options.copy()
jinja_options.update(dict(
Expand All @@ -32,21 +27,6 @@ class CustomFlask(Flask):
app = CustomFlask(__name__) # This replaces your existing "app = Flask(__name__)"
CORS(app, supports_credentials = True)

""" for email feature
# c = credentials()
# c.setPassword()
# app.config.update(
# DEBUG = True,
# MAIL_SERVER = 'smtp.gmail.com',
# MAIL_PORT = 465,
# MAIL_USE_SSL = True,
# MAIL_USERNAME = '[email protected]',
# MAIL_PASSWORD = c.password,
# )
# mail = Mail(app)
"""
my_sim = Simulation()

@app.route('/s-bfls/', methods=['POST'])
Expand All @@ -63,16 +43,6 @@ def Sbfl():
my_sim.main()
response_dict['sim_response'] = my_sim.sim_results
response = jsonify(response_dict)

""" for email feature
# response.headers.add('Access-Control-Allow-Origin', '*')
# msg = Message('S-BFLS',
# sender="[email protected]",
# recipients=["[email protected]"])
# msg.body = "Thanks for using SBFLS! Attached are our results."
# mail.send(msg)
"""
return response

@app.errorhandler(404)
Expand Down

0 comments on commit 908edb3

Please sign in to comment.