Skip to content

Commit ba53c92

Browse files
committed
build_web_db.py: Fix bad total count calculation
1 parent 9cfca38 commit ba53c92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build_web_db.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ def main() -> int:
162162
print(f'{arch}/{bits}/{abi}:', end='')
163163

164164
prev = 'vX'
165-
for tag in sorted_tags(abi_index['tables']):
165+
tags = sorted_tags(abi_index['tables'])
166+
for tag in tags:
166167
# Skip special "latest" tag
167168
if tag == 'latest':
168169
total -= 1
@@ -175,7 +176,7 @@ def main() -> int:
175176

176177
print(tag, end=' ')
177178

178-
total += len(abi_index)
179+
total += len(tags)
179180
print(end='\n\n')
180181

181182
print('Total:', total, 'tables')

0 commit comments

Comments
 (0)