Skip to content

Commit

Permalink
Minor renaming and reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
colindean committed Sep 17, 2022
1 parent f99e54a commit 4d472e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tax_rate_comparison/retrieve_tax_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import requests
from bs4 import BeautifulSoup
from colorlog import ColoredFormatter

LOG_LEVEL = logging.DEBUG
LOGFORMAT = "%(log_color)s%(levelname)-6s%(reset)s| %(log_color)s%(message)s%(reset)s"
from colorlog import ColoredFormatter

formatter = ColoredFormatter(LOGFORMAT)
stream = logging.StreamHandler()
Expand All @@ -19,7 +19,7 @@
log.setLevel(LOG_LEVEL)
log.addHandler(stream)

years = range(2001, 2022)
RETRIEVE_YEARS = range(2001, 2022)


@dataclass
Expand Down Expand Up @@ -114,11 +114,11 @@ def get_year_data(year: int) -> YearData:


def main():
for year in years:
for year in RETRIEVE_YEARS:
data = get_year_data(year)
log.info(data)
# write_year_data(data)
log.info("Done collecting for %d years", len(years))
log.info("Done collecting for %d years", len(RETRIEVE_YEARS))


if __name__ == "__main__":
Expand Down

0 comments on commit 4d472e5

Please sign in to comment.