Skip to content

Conversation

@Haider8
Copy link
Member

@Haider8 Haider8 commented Jun 25, 2020

No description provided.

)
if order := edit_order_status(db, order=order, order_status=data.status):
# To get the new order status `order_status.state`
if order := edit_order_status(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing whitespace after ':'
missing whitespace around operator
multiple statements on one line (colon)

@pep8speaks
Copy link

Hello @Haider8! Thanks for opening this PR.

Line 103:22: E701 multiple statements on one line (colon)
Line 103:22: E231 missing whitespace after ':'
Line 103:23: E225 missing whitespace around operator

Do see the Hitchhiker's guide to code style

@Haider8
Copy link
Member Author

Haider8 commented Jun 25, 2020

@iamareebjamal Please review

elif data.status == OrderStatusForOwner.declined:
try:
order_status.decline_order()
except MachineError:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're writing this yourself, then there is no point of using FSM. Simplify it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants