Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorntonMatthewD committed Dec 7, 2023
1 parent ec165b1 commit 56a9386
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def parse_location(event_json):
f"{event_json['venue']['state']} {event_json['venue']['zip']}"
)

if event_json["venue"]["lat"] is not None and event_json["venue"]["lon"] is not None:
if (
event_json["venue"]["lat"] is not None
and event_json["venue"]["lon"] is not None
):
return f"lat/long: {event_json['venue']['lat']}, {event_json['venue']['lon']}"

return f"{event_json['venue']['name']}"
Expand Down

0 comments on commit 56a9386

Please sign in to comment.