From fa360b4b12b3238995a40470d2aded0fa9875bb5 Mon Sep 17 00:00:00 2001 From: Hrishi Hiraskar Date: Thu, 27 Oct 2016 20:18:01 +0530 Subject: Integrated SendLog python server --- src/main/SendLog.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/SendLog.py b/src/main/SendLog.py index ea501e9..9aaf138 100755 --- a/src/main/SendLog.py +++ b/src/main/SendLog.py @@ -174,10 +174,6 @@ def event_stream(xcos_file_id): # Notify Client yield "event: DONE\ndata: None\n\n" -# For a given file, return whether it's an allowed type or not -def allowed_file(filename): - return '.' in filename and filename.rsplit('.', 1)[1] in app.config['ALLOWED_EXTENSIONS'] - # Route that will process the file upload @app.route('/upload', methods=['POST']) def upload(): -- cgit