Skip to content

Commit 3dbeb1d

Browse files
chore: Fix comparison constant position (#7334)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent 1345b92 commit 3dbeb1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/schema/orders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def generate_payment_url(self, data):
3636
if (
3737
'POST' in request.method
3838
or ('GET' in request.method and 'regenerate' in request.args)
39-
and 'completed' != data["status"]
39+
and data["status"] != 'completed'
4040
):
4141
if data['payment_mode'] == 'stripe':
4242
data['payment_url'] = 'stripe://payment'

0 commit comments

Comments
 (0)