Conversation
acidjunk
commented
Aug 17, 2021
acidjunk
left a comment
Owner
Author
There was a problem hiding this comment.
@Georgi2704 some comments and if possible I would like to see a unit test also.
| @api.doc("Show all users to staff users.") | ||
| class UserResourceList(Resource): | ||
| @roles_accepted("admin") | ||
| # @roles_accepted("admin") |
Owner
Author
There was a problem hiding this comment.
There are a lot of places now without auth...
|
|
||
|
|
||
| def is_ip_allowed(request, shops_IP_whitelist, shop_id): | ||
| if (shop_id in shops_IP_whitelist): |
Owner
Author
There was a problem hiding this comment.
more pythonesk to use: shops_IP_whitelist.get(shop_id)
Collaborator
There was a problem hiding this comment.
i ll do that in the next commits
| save(order) | ||
| return order, 201 | ||
|
|
||
| @api.route('/iptest') |
| abort(400, "Your IP is not allowed!") | ||
|
|
||
| # 5 gram check | ||
| # 5 gram checks |
Collaborator
There was a problem hiding this comment.
probably clicked backspace
| # "order_info": fields.String(), | ||
| "total": fields.Float(required=True, description="Total"), | ||
| "customer_order_id": fields.Integer, | ||
| "customer_ord er_id": fields.Integer, |
| @@ -0,0 +1,8 @@ | |||
| # Default ignored files | |||
Owner
Author
There was a problem hiding this comment.
hmm: I normally list the complete ".idea" folder in my root .gitignore
A nice test of your git skills: remove the .idea folder fromthis branch and add the .idea folder to the root ignore file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.