Skip to content
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

Hostname contents and list lengths #1036

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

snoyes
Copy link
Contributor

@snoyes snoyes commented Sep 5, 2022

In the database interface, and cannot be used to check for two substrings like this code attempts. This code effectively only checks for the word 'project' in the hostname. Correctly check for both words in the socket hostname.

In the preview image, the group and integ are allowed to be integers or lists of length 2, but there was no check if the list was of length 0 or 1.

`and` cannot be used to check for two substrings like this.
Correctly check for both words in the socket hostname.
@pep8speaks
Copy link

pep8speaks commented Sep 5, 2022

Hello @snoyes, Thank you for updating !

Line 390:64: W291 trailing whitespace
Line 447:34: W291 trailing whitespace
Line 474:75: W291 trailing whitespace
Line 475:78: W291 trailing whitespace
Line 476:61: W291 trailing whitespace
Line 483:66: W291 trailing whitespace
Line 487:66: W291 trailing whitespace
Line 492:62: W291 trailing whitespace

Comment last updated at 2023-10-02 14:55:07 UTC

Later code assumes that the list has at least two elements.
@snoyes snoyes changed the title Correctly check hostname contents Hostname contents and list lengths Sep 6, 2022
Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your submission!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants