diff options
| -rw-r--r-- | lesana/command.py | 6 | ||||
| -rw-r--r-- | tests/test_collection.py | 1 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/lesana/command.py b/lesana/command.py index c3d1ba9..cb053eb 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -290,8 +290,10 @@ class Search(Command):          if self.args.query == ['*']:              results = collection.get_all_documents()          else: -            collection.start_search(' '.join(self.args.query), -                    sort_by=self.args.sort) +            collection.start_search( +                ' '.join(self.args.query), +                sort_by=self.args.sort +            )              if self.args.all:                  results = collection.get_all_search_results()              else: diff --git a/tests/test_collection.py b/tests/test_collection.py index 4aa0dfe..850ac27 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -298,7 +298,6 @@ class testComplexCollection(unittest.TestCase):      def test_empty_data(self):          entry = lesana.Entry(self.collection) -        print(entry.yaml_data)          self.assertIn("name: ''", entry.yaml_data)          self.assertIn('with_default', entry.yaml_data)          self.assertIn('amount: 0', entry.yaml_data) | 
