[Patchew-devel] [PATCH 2/2] model: fixed variable name

cic posted 2 patches 6 years, 11 months ago
[Patchew-devel] [PATCH 2/2] model: fixed variable name
Posted by cic 6 years, 11 months ago
From: Shubham <shubhamjain7495@gmail.com>

fixed variable name from s to series in series_update()
---
 api/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/models.py b/api/models.py
index e3585e4..b4f8468 100644
--- a/api/models.py
+++ b/api/models.py
@@ -193,7 +193,7 @@ class Project(models.Model):
             s = mo.get_series_head()
             if s:
                 updated_series.append(s)
-        for s in updated_series:
+        for series in updated_series:
             for p in series.get_patches():
                 if not p.is_merged:
                     break
-- 
1.9.1

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel
Re: [Patchew-devel] [PATCH 2/2] model: fixed variable name
Posted by Paolo Bonzini 6 years, 11 months ago
On 01/06/2018 05:54, cic wrote:
> From: Shubham <shubhamjain7495@gmail.com>
> 
> fixed variable name from s to series in series_update()
> ---
>  api/models.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/api/models.py b/api/models.py
> index e3585e4..b4f8468 100644
> --- a/api/models.py
> +++ b/api/models.py
> @@ -193,7 +193,7 @@ class Project(models.Model):
>              s = mo.get_series_head()
>              if s:
>                  updated_series.append(s)
> -        for s in updated_series:
> +        for series in updated_series:
>              for p in series.get_patches():
>                  if not p.is_merged:
>                      break
> 

Thanks, I applied this one.

Paolo

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel