-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added pyramidtiming middleware #3
Conversation
63912f1
to
38223eb
Compare
pyramidtiming/utils.py
Outdated
raise | ||
else: | ||
delta = time.time() - start | ||
if 200 <= response.status_code < 300: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я б тут написав трошки менше коду
range_code = '{}xx'.format(response.status_code/100)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Але то не обов'язково
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправив
setup.py
Outdated
] | ||
|
||
requires = [ | ||
'setuptools', | ||
'pyramid', | ||
] + test_requires | ||
'flask', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вимагаєш завжди мати pyramid i flask ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Може extra requires використати?
No description provided.