broadfield-dev commited on
Commit
bcfdd25
·
verified ·
1 Parent(s): d6b7b7c

Update processor.py

Browse files
Files changed (1) hide show
  1. processor.py +4 -0
processor.py CHANGED
@@ -301,6 +301,10 @@ class DatasetCommandCenter:
301
  val = eval(col_def['expression'], {}, eval_context)
302
  new_row[target_col] = val
303
 
 
 
 
 
304
  except Exception as e:
305
  raise ValueError(f"Column '{target_col}' failed: {str(e)}")
306
 
 
301
  val = eval(col_def['expression'], {}, eval_context)
302
  new_row[target_col] = val
303
 
304
+ elif t_type == 'requests':
305
+ # Lazy Context Creation: Only pay the cost if used
306
+ new_row[target_col] = requests.post(col_def['rurl'], json={col_def['rpay']}).text
307
+
308
  except Exception as e:
309
  raise ValueError(f"Column '{target_col}' failed: {str(e)}")
310