Skip to content

Commit

Permalink
logs added
Browse files Browse the repository at this point in the history
  • Loading branch information
sasi2312 committed Jul 17, 2024
1 parent 527dca8 commit ef3a6b3
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('*').like('issue_url', f'%{url}%').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 ef3a6b3

Please sign in to comment.