From f215c73705071206c00979b298b9277897f03c5a Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 17 Feb 2023 15:49:57 -0800 Subject: [PATCH] a few notes, spell not in correctly.. --- ui/medashare/cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/medashare/cli.py b/ui/medashare/cli.py index 22eebb2..7728a17 100644 --- a/ui/medashare/cli.py +++ b/ui/medashare/cli.py @@ -418,6 +418,7 @@ class ObjectStore(object): #if oldobj.modified > obj.modified: # return if oldobj is not None: + # XXX - missing cleanup of indexes session.delete(oldobj) sobj = orm.MetaDataObject(uuid=obj.uuid, type=obj.type, @@ -1278,7 +1279,7 @@ def handle_bittorrent(fname, persona, objstr): except KeyError: pass else: - if not 'incomplete' in cont: + if 'incomplete' not in cont: print('Warning, container already complete, skipping %s.' % repr(fname), file=sys.stderr) return @@ -2405,3 +2406,8 @@ class _TestCases(unittest.TestCase): # and outputs an error message self.assertEqual(stderr.getvalue(), 'ERROR: file not found: \'foo\'\n') + +# Tests to add: +# dump mappings (mappings with no args) +# expand mappings to multiple mappings, that is a -> b, b -> c, implies a -> c +# support host names in --create