Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rest: load json boolean #295

Merged

Conversation

diegodelemos
Copy link
Member

@@ -155,7 +155,7 @@ def get_workflows(): # noqa
user_uuid = request.args['user']
user = User.query.filter(User.id_ == user_uuid).first()
type = request.args.get('type', 'batch')
verbose = request.args.get('verbose', False)
verbose = json.loads(request.args.get('verbose', 'false').lower())
Copy link
Member

Choose a reason for hiding this comment

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

Do we have the same issue with the following?

reana_workflow_controller/rest/workflows.py:554:        brief = request.args.get('brief', False)

* `true` and `false` when passed to `bool()` are always true
  (closes reanahub/reana-client#367).
@diegodelemos diegodelemos force-pushed the reana-367/optimise-list-performance branch from 99d30a6 to acb5176 Compare February 7, 2020 09:10
* New version 1.0 of Werkzeug released.
@diegodelemos diegodelemos merged commit f14d621 into reanahub:master Feb 7, 2020
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.

cli: optimise list command performance
2 participants