Skip to content

Commit

Permalink
Merge pull request #356 from lyricnz/bugfix/fix-flake8-warning
Browse files Browse the repository at this point in the history
Rename local variable to avoid clashing with import
  • Loading branch information
LukePrior authored May 16, 2024
2 parents 37b4cb3 + b0b0528 commit 6552304
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions code/adhoc_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
from collections import Counter, OrderedDict
from datetime import datetime, timedelta

import requests
from bs4 import BeautifulSoup
from tabulate import tabulate

import data
import db
import geojson
import main
import requests
import suburbs
import utils
from bs4 import BeautifulSoup
from tabulate import tabulate

NBN_UPGRADE_DATES_URL = (
"https://www.nbnco.com.au/corporate-information/media-centre/media-statements/nbnco-announces-suburbs-and"
Expand Down Expand Up @@ -343,8 +342,8 @@ def fix_tech_breakdown(tech):
# breakdown-suburbs.json
breakdowns = utils.read_json_file("results/breakdown-suburbs.json")
for date, date_info in breakdowns.items():
for state, suburbs in date_info.items():
for suburb, breakdown in suburbs.items():
for state, suburb_list in date_info.items():
for suburb, breakdown in suburb_list.items():
fix_tech_breakdown(breakdown)
utils.write_json_file("results/breakdown-suburbs.json", breakdowns)

Expand Down

0 comments on commit 6552304

Please sign in to comment.