From 889606ffac5096610e6123134cb89423c15ef464 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 12 Nov 2018 23:26:36 -0800 Subject: get webface working again --- python/fatcat_web/__init__.py | 4 ++-- python/fatcat_web/routes.py | 4 ++-- python/fatcat_web/search.py | 2 +- python/fatcat_webface.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'python') 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() -- cgit v1.2.3