Commit 393cea65 by Nicolas Joyard

Commit à chaque entité

parent 05b7b127
......@@ -3,7 +3,7 @@
set -e
# Usage
# extractjson.sh JSONFILE OUTPUTDIR OBJTYPE [OBJTYPE ...]
# extract_an_json.sh JSONFILE OUTPUTDIR OBJTYPE [OBJTYPE ...]
jsonfile=$1
shift
......
......@@ -117,7 +117,7 @@ def fetch_an(job, **kwargs):
errors = errors + 1
continue
job.flush_update()
job.commit_update()
os.remove(chfile)
job.finish_update(jsonzip_url, jsonzip_lmd, len(changes))
......@@ -118,8 +118,8 @@ class ImportJob(object):
db.session.add(job)
db.session.commit()
def flush_update(self):
db.session.flush()
def commit_update(self):
db.session.commit()
@property
def data_dir(self):
......
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 sign in to comment