Skip to content

Commit

Permalink
Update council_feature_input_parity.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robbrad authored May 26, 2024
1 parent 1e5ab00 commit 3b08146
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uk_bin_collection/tests/council_feature_input_parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_councils_from_files(repo, branch):
if response.status_code == 200:
try:
data = response.json()
print(f"Parsed JSON Data (Files): {data}")
#print(f"Parsed JSON Data (Files): {data}")
# Ensure 'data' is a list before proceeding
if isinstance(data, list):
return [item['name'].replace('.py', '') for item in data if item['name'].endswith('.py')]
Expand All @@ -40,7 +40,7 @@ def get_councils_from_json(repo, branch):
if response.status_code == 200:
try:
data = json.loads(response.text)
print(f"Parsed JSON Data: {data}")
#print(f"Parsed JSON Data: {data}")
return list(data.keys())
except json.JSONDecodeError as e:
print(f"JSON decoding error: {e}")
Expand All @@ -59,7 +59,7 @@ def get_councils_from_features(repo, branch):

if response.status_code == 200:
content = response.text
print(f"Fetched Features Content: {content[:500]}...") # Print only the first 500 characters for brevity
#print(f"Fetched Features Content: {content[:500]}...") # Print only the first 500 characters for brevity
return re.findall(r'Examples:\s+(\w+)', content)
else:
print(f"Failed to fetch councils from features: {response.content}")
Expand Down

0 comments on commit 3b08146

Please sign in to comment.