Skip to content

Commit

Permalink
use onchain id for project get
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheo committed Nov 5, 2024
1 parent 49f770b commit be2820c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ def update_approved_projects(event_data, chain_id="stellar"):
chain = Chain.objects.get(name=chain_id)
round_obj = Round.objects.get(on_chain_id=round_id, chain=chain)
for ids in project_ids:
project = Project.objects.get(id=ids)
project = Project.objects.get(on_chain_id=ids)
round_obj.approved_projects.add(project.owner)
return True

Expand Down Expand Up @@ -1443,7 +1443,7 @@ def process_vote_event(event_data, tx_hash, chain_id="stellar"):
project_id = pick['voted_project']
else:
pair_id = pick['pair_id']
project_id = Project.objects.get(id=pick['project_id']).owner.id
project_id = Project.objects.get(on_chain_id=pick['project_id']).owner.id

# Assuming project_id corresponds to PotApplication id

Expand Down

0 comments on commit be2820c

Please sign in to comment.