Skip to content

Commit

Permalink
id issues fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sasi2312 committed Jun 25, 2024
1 parent 6687de8 commit 2350586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_issues():
issues = org['dmp_issues']
obj['org_id'] = org['id']
obj['org_name'] = org['name']
renamed_issues = [{"id": issue["issue_number"], "name": issue["title"]} for issue in issues]
renamed_issues = [{"id": issue["id"], "name": issue["title"]} for issue in issues]
obj['issues'] = renamed_issues

res.append(obj)
Expand Down
2 changes: 1 addition & 1 deletion v2_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_issues_by_owner_id_v2(owner, issue):
url = f"https://github.com/{repo_owner}" if repo_owner else None


dmp_issue_id = SUPABASE_DB.client.table('dmp_issues').select('*').like('issue_url', f'%{url}%').eq('issue_number', issue).execute()
dmp_issue_id = SUPABASE_DB.client.table('dmp_issues').select('*').like('issue_url', f'%{url}%').eq('id', issue).execute()
if not dmp_issue_id.data:
return jsonify({'error': "No data found"}), 500

Expand Down

0 comments on commit 2350586

Please sign in to comment.