Skip to content

Commit 238e0d8

Browse files
committed
Merge branch 'dev' of https://github.com/Code4GovTech/DMP-CMS-Backend-API into server_debuging
2 parents 0e19a7e + 0b292ff commit 238e0d8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

v2_app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ def get_issues_by_owner_id_v2(owner, issue):
2727

2828
dmp_issue_id = SUPABASE_DB.client.table('dmp_issues').select('*').eq('id', issue).execute()
2929
if not dmp_issue_id.data:
30-
return jsonify({'error': "No data found"}), 500
30+
print(f"url....{url}....{issue}")
31+
return jsonify({'error': "No data found in dmp_issue"}), 500
3132

3233
dmp_issue_id = dmp_issue_id.data[0]
3334
response = SUPABASE_DB.client.table('dmp_issue_updates').select('*').eq('dmp_id', dmp_issue_id['id']).execute()
3435

3536
if not response.data:
36-
return jsonify({'error': "No data found"}), 500
37+
print(f"dmp_issue_id....{response}....{dmp_issue_id}")
38+
return jsonify({'error': "No data found in dmp_issue_updates"}), 500
3739

3840
data = response.data
3941

0 commit comments

Comments
 (0)