Skip to content

Commit

Permalink
Merge pull request #8 from allora-network/diego/ora-1508-losses-too-big
Browse files Browse the repository at this point in the history
fix obtaining value
  • Loading branch information
xmariachi authored May 30, 2024
2 parents b472298 + dd1ce0f commit c741545
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 @@ -86,7 +86,7 @@ def get_price(token, timestamp):
result = cursor.fetchone()
conn.close()
if result:
return str('"' + str(result[0]) + '"'), 200
return str('"' + str(result[1]) + '"'), 200
else:
return jsonify({'error': 'No price data found for the specified token and timestamp'}), HTTP_RESPONSE_CODE_404

Expand Down

0 comments on commit c741545

Please sign in to comment.