Skip to content

Commit

Permalink
Merge pull request #22 from Code4GovTech/sasi_dev_v2
Browse files Browse the repository at this point in the history
issue by owner api fix
  • Loading branch information
sasi2312 authored Jun 21, 2024
2 parents bf36dae + 790a6ad commit 3b686d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_issues_by_owner(owner):
org_link = f"https://github.com/{owner}"

# Fetch organization details from dmp_orgs table
response = SupabaseInterface().get_instance().client.table('dmp_orgs').select('name', 'description').eq('link', org_link).execute()
response = SupabaseInterface().get_instance().client.table('dmp_orgs').select('name', 'description').eq('name', owner).execute()

if not response.data:
return jsonify({'error': "Organization not found"}), 404
Expand Down

0 comments on commit 3b686d4

Please sign in to comment.