From: Art Rhyno Date: Mon, 7 Jul 2014 16:41:21 +0000 (-0400) Subject: Clean up debug code from parts copying X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=238e14f2b827bd18c4a3472db07fa5e0157fe617;p=Syrup.git Clean up debug code from parts copying Comment unneeded statements and put walk function in models back in order. Signed-off-by: Art Rhyno --- diff --git a/conifer/syrup/models.py b/conifer/syrup/models.py index 26263e9..373c347 100644 --- a/conifer/syrup/models.py +++ b/conifer/syrup/models.py @@ -443,9 +443,9 @@ class Site(BaseModel): # walk the tree out = [] + out_barcodes = [] + out_ids = [] def walk(parent, accum): - out_barcodes = [] - out_ids = [] here = dct.get(parent, []) for item in here: sub = [] diff --git a/conifer/syrup/views/sites.py b/conifer/syrup/views/sites.py index 035b3c0..3d0f9dc 100644 --- a/conifer/syrup/views/sites.py +++ b/conifer/syrup/views/sites.py @@ -414,9 +414,9 @@ def sort_out_parts(theid,bc,bcs,tids): if len(tids) > 0: if theid in tids[0]: - print "would add", bcs partids = tids[0] - partpos = partids.index(theid) + #for debugging + #partpos = partids.index(theid) partbcs = bcs[0] if len(partbcs) == 0: