Skip to content

Commit

Permalink
Accept two part postcodes (space-separated)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlestang committed Jul 26, 2023
1 parent ab7ce0d commit 6c608c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cats/CI_api_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def ciuk_request_url(timestamp: datetime, postcode: str):
"https://api.carbonintensity.org.uk/regional/intensity/"
+ dt.strftime("%Y-%m-%dT%H:%MZ")
+ "/fw48h/postcode/"
+ postcode
+ postcode.split()[0]
)


Expand Down

0 comments on commit 6c608c6

Please sign in to comment.