Clean up debug code from parts copying
authorArt Rhyno <art632000@yahoo.ca>
Mon, 7 Jul 2014 16:41:21 +0000 (12:41 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Mon, 7 Jul 2014 16:41:21 +0000 (12:41 -0400)
Comment unneeded statements and put walk function in
models back in order.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
conifer/syrup/models.py
conifer/syrup/views/sites.py

index 26263e9..373c347 100644 (file)
@@ -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 = []
index 035b3c0..3d0f9dc 100644 (file)
@@ -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: