Skip to content

Commit 9906cd8

Browse files
committed
Shortened var name
1 parent 5b436d2 commit 9906cd8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

remove-json-keys/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
else : log.trunc(f'Unable to locate a {cli.json_dir} directory.') ; exit()
3535

3636
# Process JSON files and remove specified keys
37-
keys_removed, keys_skipped, processed_count = [], [], 0
37+
keys_removed, keys_skipped, processed_cnt = [], [], 0
3838
for root, _, files in os.walk(cli.json_dir):
3939
for filename in files:
4040
if filename.endswith('.json'):
@@ -54,12 +54,12 @@
5454
else : keys_skipped.append((key, os.path.relpath(file_path, cli.json_dir)))
5555
if modified:
5656
with open(file_path, 'w', encoding='utf-8') as f : f.write(data)
57-
processed_count += 1
57+
processed_cnt += 1
5858

5959
# Print file summaries
6060
summary = {
6161
'removed': [f'{key} ({file_path})' for key, file_path in keys_removed],
6262
'skipped': [f'{key} ({file_path})' for key, file_path in keys_skipped],
6363
}
6464
log.finalSummary(summary)
65-
log.trunc(f'Total JSON files processed: {processed_count}\n')
65+
log.trunc(f'Total JSON files processed: {processed_cnt}\n')

remove-json-keys/lib/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def cli():
55
cli = sns(
66
name='remove-json-keys',
7-
version='2026.2.10.26',
7+
version='2026.2.10.27',
88
author=sns(name='Adam Lui', email='adam@kudoa.com', url='https://github.com/adamlui'),
99
description='Remove key/value pairs from json_dir/**.json',
1010
urls=sns(

0 commit comments

Comments
 (0)