Update by natay on Fri Feb  1 09:23:00 EST 2019 from H7-D25RF0PLGQ18
@@ -327,7 +327,7 @@ class Command(BaseCommand):
api_key = options["key"]
root_dir = options["dir"] or os.getcwd()
rid = options["rid"]
- pid = options["pid"]
+ pid = os.path.basename(os.path.dirname(options["pid"]))
rec = options["recipes"]
if len(sys.argv) == 2 or not pid:
