-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add theme switch #105
Add theme switch #105
Conversation
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.
Thanks @Mathanraj-Sharma! A few small comments from me, looks good otherwise.
explaining-ratings/src/app.py
Outdated
await update_theme(q) | ||
else: | ||
del q.page['diff'] |
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.
What's the reason for including the rest of the handlers in an else
block? Can it be flattened (else removed)?
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.
if they are not in else
block when we switch them it resubmits the filters as well. So the rating diff also getting refreshed
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.
But if the same filters are applied again, shouldn't it result in the very same diff? In which case it doesn't matter if they are rerun or not.
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.
@mturoci no it doesn't, it creates different word clouds (as diff) for each time it gets triggered with the same filters
@mturoci I have improved the conditions to switch theme, please check |
41d97cd
to
095e9fc
Compare
Fix #77