summaryrefslogtreecommitdiff
path: root/app/__init__.py
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2019-11-09 19:55:57 -0600
committerBlaise Thompson <blaise@untzag.com>2019-11-09 19:55:57 -0600
commitc99d2447b57d6e14a78013152a53bb4552a33bb7 (patch)
tree7abce49aa4a35e51ae43dd2cace880b611a5f93b /app/__init__.py
parent735f16fe70f6f1d182d42d1f5161fe2aebe6aa6d (diff)
pre-commit
Diffstat (limited to 'app/__init__.py')
-rw-r--r--app/__init__.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/app/__init__.py b/app/__init__.py
deleted file mode 100644
index 5e397e4..0000000
--- a/app/__init__.py
+++ /dev/null
@@ -1,42 +0,0 @@
-import pathlib
-from flask import Flask, render_template
-import flask
-from flask_sqlalchemy import SQLAlchemy
-import pandas
-
-
-__here__ = pathlib.Path(__file__).parent
-
-
-
-df = pandas.read_csv(__here__ / "jobs.csv")
-
-
-
-
-app = Flask(__name__)
-app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
-db = SQLAlchemy(app)
-
-
-class User(db.Model):
- id = db.Column(db.Integer, primary_key=True)
- username = db.Column(db.String(80), unique=True)
- email = db.Column(db.String(120), unique=True)
-
- def __repr__(self):
- return '<User %r>' % self.username
-
-@app.route('/')
-@app.route('/jobs')
-def jobs():
- #return df.to_html()
- return render_template("jobs.html", df=df.to_html())
-
-@app.route('/inventory')
-def inventory():
- #return df.to_html()
- return render_template("inventory.html")
-
-
-app.run(debug=True, port=8000)