Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-API into server_debuging
  • Loading branch information
sasi2312 committed Jul 18, 2024
2 parents 0e19a7e + 0b292ff commit 238e0d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions v2_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ def get_issues_by_owner_id_v2(owner, issue):

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

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

if not response.data:
return jsonify({'error': "No data found"}), 500
print(f"dmp_issue_id....{response}....{dmp_issue_id}")
return jsonify({'error': "No data found in dmp_issue_updates"}), 500

data = response.data

Expand Down

0 comments on commit 238e0d8

Please sign in to comment.