Skip to content

Commit

Permalink
Slight changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmisankepally committed Nov 24, 2019
1 parent a49e92d commit d38438e
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/818_search.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
POSTGRES_URL = "127.0.0.1:5432"
POSTGRES_DB = "project"


def allowed_file(filename):
return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS


@app.route('/upload', methods=['GET', 'POST'])
def upload():
if request.method == 'POST':
Expand All @@ -37,8 +39,7 @@ def upload():
df = pd.read_csv(io.StringIO(data), delimiter=',', header='infer')

print(df)



return redirect(url_for('upload', filename=filename))
return '''
<!doctype html>
Expand Down

0 comments on commit d38438e

Please sign in to comment.