Skip to content

Commit 68b8629

Browse files
author
Rodion Yaryy
committed
Change query name
1 parent 80037bf commit 68b8629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/schema/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def export_issues(self, status=None, timeout_seconds=60):
191191
sleep_time = 2
192192
id_param = "projectId"
193193
status_param = "status"
194-
query_str = """query getProjectIssues($%s: ID!, $%s: IssueStatus) {
194+
query_str = """query GetProjectIssuesExportPyApi($%s: ID!, $%s: IssueStatus) {
195195
project(where: { id: $%s }) {
196196
issueExportUrl(where: { status: $%s })
197197
}
@@ -210,7 +210,7 @@ def export_issues(self, status=None, timeout_seconds=60):
210210
})
211211
res = res['project']
212212

213-
if res.get('issueExportUrl'):
213+
if res.get('issueExportUrl') and res.get('issueExportUrl') != '':
214214
return res
215215

216216
timeout_seconds -= sleep_time

0 commit comments

Comments
 (0)