Browse Source

sql 移除换行

liweiquan 2 years ago
parent
commit
17ef2d712b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/services/jm_job.py

+ 3 - 0
app/services/jm_job.py

@@ -193,6 +193,9 @@ def red_dag_and_format(jm_homework: models.JmHomework, relation_list, db: Sessio
                     input_num.update({input:0})
                 inputs.update({'input'+str(index):[input,input_num[input]]})
                 index+=1
+            script = node['data']['script']
+            if node['op'] == 'sql':
+                script = script.replace('\n', ' ')
             sub_node = {
                 "id": node['id'],
                 "name": node['name'],