summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-12 23:26:36 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-12 23:26:36 -0800
commit889606ffac5096610e6123134cb89423c15ef464 (patch)
treedace8cb5c32780fee4311497d06df3b27edbf0fb
parent030c2a1e29d2d9dc6a3f2eab3b395e573d46c2c1 (diff)
downloadfatcat-889606ffac5096610e6123134cb89423c15ef464.tar.gz
fatcat-889606ffac5096610e6123134cb89423c15ef464.zip
get webface working again
-rw-r--r--python/fatcat_web/__init__.py4
-rw-r--r--python/fatcat_web/routes.py4
-rw-r--r--python/fatcat_web/search.py2
-rwxr-xr-xpython/fatcat_webface.py2
4 files changed, 6 insertions, 6 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index 0033f4a3..8f487181 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -2,7 +2,7 @@
from flask import Flask
from flask_uuid import FlaskUUID
from flask_debugtoolbar import DebugToolbarExtension
-from webface_config import Config
+from web_config import Config
import fatcat_client
toolbar = DebugToolbarExtension()
@@ -15,4 +15,4 @@ conf = fatcat_client.Configuration()
conf.host = "http://localhost:9411/v0"
api = fatcat_client.DefaultApi(fatcat_client.ApiClient(conf))
-from fatcat import routes
+from fatcat_web import routes
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index ddb56abd..62096a93 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -3,9 +3,9 @@ import os
import json
from flask import Flask, render_template, send_from_directory, request, \
url_for, abort, g, redirect, jsonify, session
-from fatcat import app, api
+from fatcat_web import app, api
from fatcat_client.rest import ApiException
-from fatcat.search import do_search
+from fatcat_web.search import do_search
### Views ###################################################################
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index b6826110..7fcdabea 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -1,7 +1,7 @@
import requests
from flask import abort
-from fatcat import app
+from fatcat_web import app
def do_search(q, limit=50, fulltext_only=True):
diff --git a/python/fatcat_webface.py b/python/fatcat_webface.py
index 76cebfe9..c8a39bb9 100755
--- a/python/fatcat_webface.py
+++ b/python/fatcat_webface.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import argparse
-from fatcat_webface import app
+from fatcat_web import app
def main():
parser = argparse.ArgumentParser()