Skip to content

Commit 9e1a52f

Browse files
authored
add view in context when run python script (#881)
1 parent 986f2f2 commit 9e1a52f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dtable_events/automations/actions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,10 @@ def do_action(self):
15191519
if not self.can_do_action():
15201520
return
15211521

1522-
context_data = {'table': self.auto_rule.table_info['name']}
1522+
context_data = {
1523+
'table': self.auto_rule.table_info['name'],
1524+
'view': self.auto_rule.view_info['name']
1525+
}
15231526
if self.auto_rule.run_condition == PER_UPDATE:
15241527
context_data['row'] = self.auto_rule.get_convert_sql_row()
15251528
scripts_running_limit = self.get_scripts_running_limit()

0 commit comments

Comments
 (0)