-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
revert some rabbitai damage #8596
Conversation
WalkthroughThe changes primarily focus on enhancing the user interface by modifying HTML templates. They ensure the correct options are selected in dropdown menus based on certain conditions and values. The changes simplify the code, improve readability, and enhance the overall user experience. Changes
TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 0
Files selected for processing (2)
- sickchill/gui/slick/views/history.mako (1 hunks)
- sickchill/gui/slick/views/inc_qualityChooser.mako (3 hunks)
Files skipped from review due to trivial changes (2)
- sickchill/gui/slick/views/history.mako
- sickchill/gui/slick/views/inc_qualityChooser.mako
@miigotu any way to have coderabbitai not do everything in develop? #8581 Then with the above 2 items it's marked them as trivial and skipped. Hmm. Further: I thought the history one going to a loop was an interesting idea but couldn't find any suitable online references to it. So couldn't work out how to fix it. |
Coderabbit doesn't make any changes in its own, and I know you can commit right to develop, I gave you those permissions. Nobody else can |
@@ -19,7 +19,7 @@ selected = None | |||
<select id="qualityPreset" name="quality_preset" class="form-control input-sm input100" title="qualityPreset"> | |||
<option value="0">Custom</option> | |||
% for curPreset in qualityPresets: | |||
<option value="${curPreset}" ${selected(curPreset == overall_quality)} ${('', 'style="padding-left: 15px;"')[qualityPresetStrings[curPreset].endswith("0p")]}>${qualityPresetStrings[curPreset]}</option> | |||
<option value="${curPreset}" ${('', 'selected="selected"')[curPreset == overall_quality]} ${('', 'style="padding-left: 15px;"')[qualityPresetStrings[curPreset].endswith("0p")]}>${qualityPresetStrings[curPreset]}</option> |
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.
Here too? Instead of <input ... selected="selected>"
the value is now just <input ... selected>
which is html5. Can you tell me what the issue is? SickChill needs restarted after the update to this new code, because the selected function is added in the context of the webserver side.
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.
Gives a nonetype
mako error in the 3 locations
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.
File /home/stephenr/PycharmProjects/SickChill/sickchill/views/common.py:87, in render:
return self.template.render_unicode(*args, **context)
File /home/stephenr/.local/lib/python3.10/site-packages/mako/template.py:444, in render_unicode:
return runtime._render(
File /home/stephenr/.local/lib/python3.10/site-packages/mako/runtime.py:874, in _render:
_render_context(
File /home/stephenr/.local/lib/python3.10/site-packages/mako/runtime.py:916, in _render_context:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File /home/stephenr/.local/lib/python3.10/site-packages/mako/runtime.py:943, in _exec_template:
callable_(context, *args, **kwargs)
File /home/stephenr/PycharmProjects/SickChill/sickchill/gui/slick/views/layouts/main.mako:333, in render_body:
<%block name="content" />
File /home/stephenr/PycharmProjects/SickChill/sickchill/gui/slick/views/editShow.mako:94, in render_content:
<%include file="/inc_qualityChooser.mako" />
File /home/stephenr/.local/lib/python3.10/site-packages/mako/runtime.py:793, in _include_file:
callable_(ctx, **kwargs)
File /home/stephenr/PycharmProjects/SickChill/sickchill/gui/slick/views/inc_qualityChooser.mako:22, in render_body:
${qualityPresetStrings[curPreset]}
TypeError: 'NoneType' object is not callable
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 one's beyond me.
I'm confused about this PR, these are all changes I made, they use the selected method I added to the context to avoid having to use indexed tuples that are less readable. |
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- sickchill/gui/slick/views/history.mako (1 hunks)
Files skipped from review due to trivial changes (1)
- sickchill/gui/slick/views/history.mako
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- sickchill/gui/slick/views/inc_qualityChooser.mako (1 hunks)
Files skipped from review due to trivial changes (1)
- sickchill/gui/slick/views/inc_qualityChooser.mako
Somehow a |
revert history and inc_qualityChooser mako files so they once again work.
Summary by CodeRabbit