Calling 'retag' without a list of patch IDs will cause an Exception.
This is due to an invalid attempt to filter patches using this empty
argument. Resolve this by only filtering when we have arguments to
filter with.
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
qs = Patch.objects
if args:
- qs = qs.filter(id__in = args)
+ qs = qs.filter(id__in=args)
+ else:
+ qs = qs.all()
count = qs.count()
i = 0