From c5fa55653cd4e7f277ab8f57a7f5f67522f07c4a Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 4 Oct 2019 20:32:21 -0700 Subject: [PATCH] Regerated requirements.txt and fixed a syntax error --- google_auth.py | 6 +++--- requirements.txt | 40 +++++----------------------------------- smslisten.py | 2 +- 3 files changed, 9 insertions(+), 39 deletions(-) mode change 100644 => 100755 google_auth.py diff --git a/google_auth.py b/google_auth.py old mode 100644 new mode 100755 index 658e637..1734e63 --- a/google_auth.py +++ b/google_auth.py @@ -5,7 +5,7 @@ import functools import os -from flask import Flask, request +from Flask import flask, request, session import configparser from authlib.client import OAuth2Session import google.oauth2.credentials @@ -29,7 +29,7 @@ AUTH_TOKEN_KEY = 'auth_token' AUTH_STATE_KEY = 'auth_state' #app = Flask.Blueprint('google_auth', __name__) -app = Flask(__name__) +app = flask(__name__) if app_debug == '1': app.debug = True else: @@ -119,4 +119,4 @@ if __name__ == '__main__': app.run( host="0.0.0.0", port=int("8020") - ) \ No newline at end of file + ) diff --git a/requirements.txt b/requirements.txt index ec10997..e037991 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,35 +1,5 @@ -aioopenssl==0.4.1 -aiosasl==0.4.0 -aioxmpp==0.10.5 -asn1crypto==0.24.0 -authlib==0.11 -Babel==2.7.0 -CacheControl==0.11.7 -certifi==2019.9.11 -cffi==1.12.3 -chardet==3.0.4 -configparser==4.0.2 -cryptography==2.7 -dnspython==1.16.0 -flask==1.0.2 -google-api-python-client -google-auth -idna==2.7 -jsonpickle==0.7.1 -lxml==4.4.1 -multidict==4.5.2 -pyasn1==0.4.7 -pyasn1-modules==0.2.6 -pycparser==2.19 -PyMySQL==0.9.3 -pyOpenSSL==19.0.0 -python-dateutil==2.5.3 -pytz==2019.2 -requests==2.20.0 -six==1.11.0 -sortedcollections==1.1.2 -sortedcontainers==2.1.0 -speedtest-cli==2.1.1 -tzlocal==1.5.1 -urllib3==1.24.3 -virtualenv \ No newline at end of file +Flask==0.12.2 +PyMySQL==0.8.0 +Authlib==0.11 +protobuf==3.10.0 +google_api_python_client==1.7.11 diff --git a/smslisten.py b/smslisten.py index da873af..15a6dfc 100755 --- a/smslisten.py +++ b/smslisten.py @@ -67,7 +67,7 @@ def smscount(): return str(counter) @app.route('/submitMessage', methods=['POST']) -def submitMessage +def submitMessage(): return "Submitted" def sendreply(reply_to, reply_from, msg):