Skip to content

Commit 4b26f44

Browse files
committed
Moved README_PATH init to top
1 parent 98be1bb commit 4b26f44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/update_root_downloads_shield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
'sys-lang',
1717
'translate-messages'
1818
]
19+
README_PATH = 'docs/README.md'
1920
STATS_API_URL = 'https://pypistats.org/api/packages/{pkg}/overall'
2021

2122
def get_downloads(pkg: str, max_retries: int = 5, get_delay: int = 1) -> int:
@@ -83,7 +84,6 @@ def main() -> None:
8384
print(f'{pkg:30} {downloads:,}')
8485
print('-' *45)
8586
print(f"{'TOTAL DOWNLOADS':30} {grand_total_dls:,}\n")
86-
README_PATH = 'docs/README.md'
8787
print(f'Updating {README_PATH}...\n')
8888
update_downloads_shield(README_PATH, grand_total_dls)
8989
print('Done!')

0 commit comments

Comments
 (0)