Skip to content

Commit

Permalink
chore: Fix comparison constant position (#7334)
Browse files Browse the repository at this point in the history
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Oct 7, 2020
1 parent 1345b92 commit 3dbeb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/schema/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def generate_payment_url(self, data):
if (
'POST' in request.method
or ('GET' in request.method and 'regenerate' in request.args)
and 'completed' != data["status"]
and data["status"] != 'completed'
):
if data['payment_mode'] == 'stripe':
data['payment_url'] = 'stripe://payment'
Expand Down

0 comments on commit 3dbeb1d

Please sign in to comment.