P5-4896 remove esales
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from flask.ext.script import Manager, prompt_bool
|
||||
from api import create_app, db, esales
|
||||
from api import create_app, db
|
||||
from api.models import Designer
|
||||
|
||||
app = create_app()
|
||||
@@ -27,11 +27,5 @@ def seed_db():
|
||||
db.session.commit()
|
||||
|
||||
|
||||
@manager.command
|
||||
def run_esales_import():
|
||||
print("Importing products and categories into eSales")
|
||||
pattern = "{}/*.xml".format(app.config.get("ESALES_IMPORT_DIR"))
|
||||
esales.cluster.import_products_and_categories(pattern)
|
||||
|
||||
if __name__ == '__main__':
|
||||
manager.run()
|
||||
|
||||
Reference in New Issue
Block a user