summaryrefslogtreecommitdiffstats
path: root/python/fatcat_webface.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-12 23:21:19 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-12 23:21:19 -0800
commit807e554aafa598044099d6f1c695cda8b9501ba4 (patch)
tree061c8edd432c65c5e3f91ef9a5426b4d9499dbc4 /python/fatcat_webface.py
parentb03bfc8f3fd84141738f775b273a99850d78e1ff (diff)
downloadfatcat-807e554aafa598044099d6f1c695cda8b9501ba4.tar.gz
fatcat-807e554aafa598044099d6f1c695cda8b9501ba4.zip
remove sqlite cruft
Diffstat (limited to 'python/fatcat_webface.py')
-rwxr-xr-xpython/fatcat_webface.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/python/fatcat_webface.py b/python/fatcat_webface.py
index cfddad48..76cebfe9 100755
--- a/python/fatcat_webface.py
+++ b/python/fatcat_webface.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import argparse
-from fatcat import app
+from fatcat_webface import app
def main():
parser = argparse.ArgumentParser()
@@ -15,22 +15,8 @@ def main():
type=int,
default=9810,
help="listen on this port")
- parser.add_argument('--database-uri',
- default=app.config['SQLALCHEMY_DATABASE_URI'],
- help="sqlalchemy database string")
- parser.add_argument('--init-db',
- action='store_true',
- help="create database tables and insert dummy data")
args = parser.parse_args()
- app.config['SQLALCHEMY_DATABASE_URI'] = args.database_uri
-
- if args.init_db:
- db.create_all()
- fatcat.sql.populate_db()
- print("Dummy database configured: " + app.config['SQLALCHEMY_DATABASE_URI'])
- return
-
app.run(debug=args.debug, host=args.host, port=args.port)
if __name__ == '__main__':