Skip to content

Commit ae342dc

Browse files
committed
Bug-fix in spam-remover script: ignore cases where file-list is set
1 parent b1f0e39 commit ae342dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/spam-remover

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def main():
126126
newjournal = []
127127
for j in journal:
128128
if j[3] == 'set' and 'files' in j[4]:
129+
if j[4]['files'][0][0] not in ('-', '+') :
130+
newjournal.append(j)
131+
continue
129132
changes = dict(j[4]['files'])
130133
# only consider file additions by this user
131134
if j[2] in users and '+' in changes:

0 commit comments

Comments
 (0)