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

Wrong condition? #8

Closed
odise opened this issue Aug 31, 2018 · 1 comment
Closed

Wrong condition? #8

odise opened this issue Aug 31, 2018 · 1 comment

Comments

@odise
Copy link

odise commented Aug 31, 2018

I might be wrong but I guess this one works better.

diff --git a/principalmap/querying.py b/principalmap/querying.py
index d5a9a20..2fcd74a 100644
--- a/principalmap/querying.py
+++ b/principalmap/querying.py
@@ -26,7 +26,7 @@ def perform_query(input_str, session, graph):
         action = tokens[3]
         if len(tokens) == 4:
             result = test_for_node(session, graph, node, action)
-            if result is None:
+            if result is not None:
                 print_search_result(result, action)
             else:
                 print('Did not find a way for ' + str(node) + ' to do ' + action)
ncc-erik-steringer added a commit that referenced this issue Aug 31, 2018
@ncc-erik-steringer
Copy link
Collaborator

Good catch. I incorrectly changed an if-condition from if result != None: for the PEP8 fixes. Patched with commit 9758787.

wdahlenburg pushed a commit to wdahlenburg/PMapper that referenced this issue Sep 5, 2022
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

No branches or pull requests

2 participants