Rename importer to sources
This commit is contained in:
parent
c3a83a80cc
commit
6009a23283
@ -8,7 +8,7 @@ from flask import Flask, render_template, request, jsonify
|
||||
|
||||
# Application imports
|
||||
from inquisitor.configs import logger, DUNGEON_PATH
|
||||
from inquisitor import importer, loader, timestamp
|
||||
from inquisitor import sources, loader, timestamp
|
||||
|
||||
# Globals
|
||||
app = Flask(__name__)
|
||||
@ -146,5 +146,5 @@ def callback():
|
||||
params = request.get_json()
|
||||
if 'source' not in params and 'itemid' not in params:
|
||||
logger.error("Bad request params: {}".format(params))
|
||||
importer.item_callback(params['source'], params['itemid'])
|
||||
sources.item_callback(params['source'], params['itemid'])
|
||||
return jsonify({})
|
||||
|
@ -30,7 +30,7 @@ def command_update(args):
|
||||
logger.error("Couldn't find sources. Set INQUISITOR_SOURCES or cd to parent folder of ./sources")
|
||||
|
||||
# Update sources
|
||||
from inquisitor.importer import update_sources
|
||||
from inquisitor.sources import update_sources
|
||||
update_sources(*args.source)
|
||||
return 0
|
||||
|
||||
@ -117,7 +117,7 @@ def command_add(args):
|
||||
logger.error("Source '{}' does not exist".format(source))
|
||||
return -1
|
||||
|
||||
from inquisitor.importer import populate_new
|
||||
from inquisitor.sources import populate_new
|
||||
item = {
|
||||
'id': '{:x}'.format(random.getrandbits(16 * 4)),
|
||||
'source': 'inquisitor'
|
||||
|
Loading…
Reference in New Issue
Block a user