Skip to content

Commit 668c7ad

Browse files
authored
Update GetResultToSqlflow.py
1 parent c73a03c commit 668c7ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/python/advanced/GetResultToSqlflow.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
def getResult(download, userId, token, server, port, jobId, filePath):
1111
sep = 'data' + os.sep + 'result' + os.sep
1212
filePath = filePath + '_' + jobId
13-
if download == '1':
13+
if download == 'json':
1414
url = "/gspLive_backend/sqlflow/job/exportLineageAsJson"
1515
filePath = sep + filePath + '_json.json'
16-
elif download == '3':
16+
elif download == 'graphml':
1717
url = "/gspLive_backend/sqlflow/job/exportLineageAsGraphml"
1818
filePath = sep + filePath + '_graphml.graphml'
19-
elif download == '2':
19+
elif download == 'csv':
2020
url = "/gspLive_backend/sqlflow/job/exportLineageAsCsv"
2121
filePath = sep + filePath + '_csv.csv'
2222
else:

0 commit comments

Comments
 (0)