Skip to content

Commit

Permalink
Update GetResultToSqlflow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shenhuan2021 authored Aug 9, 2023
1 parent c73a03c commit 668c7ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/python/advanced/GetResultToSqlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
def getResult(download, userId, token, server, port, jobId, filePath):
sep = 'data' + os.sep + 'result' + os.sep
filePath = filePath + '_' + jobId
if download == '1':
if download == 'json':
url = "/gspLive_backend/sqlflow/job/exportLineageAsJson"
filePath = sep + filePath + '_json.json'
elif download == '3':
elif download == 'graphml':
url = "/gspLive_backend/sqlflow/job/exportLineageAsGraphml"
filePath = sep + filePath + '_graphml.graphml'
elif download == '2':
elif download == 'csv':
url = "/gspLive_backend/sqlflow/job/exportLineageAsCsv"
filePath = sep + filePath + '_csv.csv'
else:
Expand Down

0 comments on commit 668c7ad

Please sign in to comment.