broadfield-dev commited on
Commit
315f099
·
verified ·
1 Parent(s): d6558bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -51,8 +51,13 @@ def execute():
51
  center = DatasetCommandCenter(token=token)
52
 
53
  args = (
54
- data.get('dataset_id'), data.get('config'), data.get('split'),
55
- data.get('target_id'), data.get('recipe', {}), data.get('max_rows')
 
 
 
 
 
56
  )
57
 
58
  def task():
@@ -66,6 +71,7 @@ def execute():
66
  threading.Thread(target=task).start()
67
  return jsonify({"status": "started", "job_id": job_id})
68
 
 
69
  @app.route('/status/<job_id>', methods=['GET'])
70
  def status(job_id):
71
  return jsonify(jobs.get(job_id, {"status": "unknown"}))
 
51
  center = DatasetCommandCenter(token=token)
52
 
53
  args = (
54
+ data.get('dataset_id'),
55
+ data.get('config'),
56
+ data.get('split'),
57
+ data.get('target_id'),
58
+ data.get('recipe', {}),
59
+ data.get('max_rows'),
60
+ data.get('license') # <--- NEW PARAMETER
61
  )
62
 
63
  def task():
 
71
  threading.Thread(target=task).start()
72
  return jsonify({"status": "started", "job_id": job_id})
73
 
74
+
75
  @app.route('/status/<job_id>', methods=['GET'])
76
  def status(job_id):
77
  return jsonify(jobs.get(job_id, {"status": "unknown"}))