diff --git a/mayan/apps/mirroring/filesystems.py b/mayan/apps/mirroring/filesystems.py index 89bd5f9827..49fd4a5946 100644 --- a/mayan/apps/mirroring/filesystems.py +++ b/mayan/apps/mirroring/filesystems.py @@ -37,7 +37,7 @@ class IndexFilesystem(Operations): return queryset.annotate( clean_value=Trim( Func( - F('value'), Value('\r\n'), Value(' '), function='replace' + F('value'), Value('\n'), Value(' '), function='replace' ), ) ) diff --git a/mayan/apps/mirroring/tests/test_filesystems.py b/mayan/apps/mirroring/tests/test_filesystems.py index a4f4676256..d9df86416e 100644 --- a/mayan/apps/mirroring/tests/test_filesystems.py +++ b/mayan/apps/mirroring/tests/test_filesystems.py @@ -151,7 +151,7 @@ class IndexFilesystemTestCase(DocumentIndexingTestMixin, DocumentTestMixin, Base self.assertEqual( list( index_filesystem.readdir( - '/{}'.format(TEST_NODE_EXPRESSION), '' + '/', '' ) )[2:], [] )