Skip to content

Sourcery refactored main branch#1

Open
sourcery-ai[bot] wants to merge 1 commit into
mainfrom
sourcery/main
Open

Sourcery refactored main branch#1
sourcery-ai[bot] wants to merge 1 commit into
mainfrom
sourcery/main

Conversation

@sourcery-ai

@sourcery-ai sourcery-ai Bot commented Dec 30, 2021

Copy link
Copy Markdown

Branch main refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai Bot requested a review from dishantr16 December 30, 2021 17:37
Comment thread basket/views.py
basketqty = basket.__len__()
response = JsonResponse({'qty': basketqty})
return response
return JsonResponse({'qty': basketqty})

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function basket_add refactored with the following changes:

Comment thread basket/views.py
Comment on lines -32 to +31
response = JsonResponse({'qty': basketqty, 'subtotal': baskettotal})
return response
return JsonResponse({'qty': basketqty, 'subtotal': baskettotal})

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function basket_delete refactored with the following changes:

Comment thread basket/views.py
Comment on lines -42 to +43
response = JsonResponse({'qty': basketqty, 'subtotal': baskettotal})
return response No newline at end of file
return JsonResponse({'qty': basketqty, 'subtotal': baskettotal}) No newline at end of file

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function basket_update refactored with the following changes:

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.

0 participants