Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
mass refactor tv.py #8706
mass refactor tv.py #8706
Changes from 11 commits
83e529a
a3055a7
e36b6fb
8a67418
89546f4
6989d8c
7ba09ac
0bcd73f
6850259
846aa4a
754e34f
c20da34
ae3e0ff
cb4c31b
2a6deff
4735005
9614388
0ac7c4c
7b58831
18c4a7d
b44dc29
6340a58
212444f
dacdd68
140482a
8e44069
735ea0a
0fb6c6b
bae210c
a6ed3a4
b96ea86
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Using
cache: 'yarn'
withactions/setup-node@v4
while runningnpm install -g yarn
seems redundant. If Yarn is being used, consider removing thenpm install -g yarn
command or clarify the necessity of this approach.Large diffs are not rendered by default.
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.
The variable
episode_location
is used within an HTML attribute without proper escaping, potentially leading to Cross-Site Scripting (XSS) vulnerabilities. Ensure to escapeepisode_location
before embedding it into the HTML.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.
The display of
episode_location
directly in the HTML could lead to Cross-Site Scripting (XSS) vulnerabilities if the variable contains untrusted data. Ensureepisode_location
is properly sanitized or escaped before being rendered.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.
Use of
get_location
method without error handling or checking if the method exists.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.
Missing error handling for
episode_object.location
andshow.get_location
calls.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.
Potential performance issue:
episode_object.location[len(show.get_location)+1:]
could be inefficient ifshow.get_location
is a costly operation.Committable suggestion
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.
Method call
get_episode
should begetEpisode
to match the updated naming convention.Committable suggestion