From 2350586295abc0ee0512a3f2b0257cfd46e7133f Mon Sep 17 00:00:00 2001 From: sasi Date: Tue, 25 Jun 2024 13:32:39 +0530 Subject: [PATCH] id issues fix --- app.py | 2 +- v2_app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 9011ec6..5f8c60b 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/v2_app.py b/v2_app.py index b8c16c7..267cf13 100644 --- a/v2_app.py +++ b/v2_app.py @@ -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