Projet

Général

Profil

0001-commands-fix-a-type-in-stat-name-41051.patch

Nicolas Roche, 26 mars 2020 14:29

Télécharger (1,48 ko)

Voir les différences:

Subject: [PATCH] commands: fix a type in stat name (#41051)

 zoo/zoo_nanterre/management/commands/rsu-duplicates.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
zoo/zoo_nanterre/management/commands/rsu-duplicates.py
121 121
                qs = qs[:count]
122 122
            if days:
123 123
                since = now() - datetime.timedelta(days=days)
124 124
                self.stdout.write('Duplicates created after', since)
125 125
                qs = qs.filter(created__gte=since)
126 126
            if false:
127 127
                qs = qs.filter(state=Duplicate.STATE_FALSE_POSITIVE)
128 128
            elif dedup:
129
                qs = qs.filter(state=Duplicate.SATE_DEDUP)
129
                qs = qs.filter(state=Duplicate.STATE_DEDUP)
130 130
            else:
131 131
                qs = qs.filter(state=Duplicate.STATE_NEW)
132 132
            column_size = 0
133 133
            for duplicate in qs:
134 134
                column_size = max(column_size, len(individu_caption(duplicate.first)),
135 135
                                  len(individu_caption(duplicate.second)))
136 136

  
137 137
            self.stdout.write('%d duplicates\n' % qs.count())
138
-