-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remove storify #744
base: main
Are you sure you want to change the base?
Remove storify #744
Conversation
update tests to reflect changes to login.py and resetpassword.py
This pull request introduces 3 alerts when merging e8c49f0 into 620f84c - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #744 +/- ##
=======================================
Coverage 67.49% 67.49%
=======================================
Files 156 156
Lines 12450 12450
=======================================
Hits 8403 8403
Misses 4047 4047 Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging 4a949b9 into 3588638 - view on LGTM.com new alerts:
|
Co-Authored-By: Charmander <[email protected]>
Co-Authored-By: Charmander <[email protected]>
Co-Authored-By: Charmander <[email protected]>
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 are some .get('name', False)
s that should probably just be .get('name')
(since they were originally the equivalent of .get('name', '')
), but we can fix that later.
It might be safer to review, merge, and deploy this one piece at a time…
if form.since: | ||
since = d.parse_iso8601(form.since) | ||
count = int(form.count) | ||
if 'since' in request.params: |
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.
This will make an empty ?since=
will stop working. I think we may as well keep full backwards compatibility here.
return submission.select_view_api( | ||
request.userid, int(request.matchdict['submitid']), | ||
anyway=bool(form.anyway), increment_views=bool(form.increment_views)) | ||
anyway=('anyway' in request.params), increment_views=('increment_views' in request.params)) |
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.
Behaviour difference for empty values ?anyway=
, ?increment_views=
.
anyway=('anyway' in request.params), increment_views=('increment_views' in request.params)) | |
anyway=bool(request.params.get('anyway')), increment_views=bool(request.params.get('increment_views')) |
|
||
if 'customthumb' in form: | ||
if request.params.get('customthumb', False): |
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.
Fully preserving the original behaviour (correct):
if request.params.get('customthumb', False): | |
if 'customthumb' in request.params: |
sites = zip(site_names, site_values) | ||
|
||
if 'more' in request.params: | ||
form = request.params.mixed() |
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.
mixed
adds a lot of potential type confusion. I think it’s best to create a dict explicitly instead.
Removes the need for web_input_request_method