Commit d5bb3c9f authored by Yannick Chudy's avatar Yannick Chudy

cors + url ttp

parent fe669e65
......@@ -99,6 +99,7 @@ graphdb = IGraphDB({})
graphdb.open_database()
STORE = "../application/src/sample"
STORE = "./pads"
def get_db():
......@@ -255,6 +256,8 @@ def pad2igraph(gid, url, format="csv"):
try :
description = "imported from %s" % url
if url[0:4] != 'http':
url = "%s/%s.%s" % (STORE, url, format)
bot = BotaIgraph(directed=True)
botapad = Botapad(bot , gid, description, delete=DELETE)
botapad.parse(url, separator='auto', debug=app.config['DEBUG'])
......
......@@ -4,6 +4,7 @@ flask
flask-runner
Flask-Markdown
flask_login
flask_cors
# cello reliure Botagraph & BotaIgraph
reliure
......@@ -12,7 +13,6 @@ https://github.com/padagraph/botapi/archive/master.zip
https://github.com/padagraph/pdgapi/archive/master.zip
https://github.com/padagraph/pdglib/archive/master.zip
# padagraph screenshot
# selenium
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment