Skip to content

Commit 0e6ddc6

Browse files
committed
Fix comments in generate_events_meetup.py & instruction in meetup_events.md
1 parent 6ad8ea9 commit 0e6ddc6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

tools/events-automation/generate_events_meetup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,12 @@ def get_20_events(groups) -> list[Event]:
248248

249249
# Convert obtained latitude and longitude of an event to formatted location
250250
address = (GEOLOCATOR.reverse(str(venue["lat"]) +","+ str(venue["lng"]))).raw["address"]
251+
#TODO: return the full address for location
251252
location = format_location(address)
252-
253253
date = node["dateTime"]
254254
url = node["eventUrl"]
255255
organizerName = group.get("name", urlName)
256256
organizerUrl = group["link"]
257-
# print(f"Event({name}, location={location}\ndate={date}, url={url}, virtual={virtual}\norganizerName={organizerName}, organizerUrl={organizerUrl}\n")
258257
events.append(Event(name, location, date, url, virtual, organizerName, organizerUrl))
259258
return events
260259

@@ -279,8 +278,6 @@ def get_events() -> list[Event]:
279278
Returns a list of Event objects querying from known, and Meetup API Rust groups
280279
:rtype: list[Event]
281280
"""
282-
# events_meetup_groups = get_20_events(get_rush_groups())
281+
# TODO: once the handling events without venue successful, get events_meetup_groups = get_20_events(get_rush_groups())
283282
events_known_groups = get_20_events(get_known_rush_groups())
284-
return events_known_groups
285-
286-
# get_events()
283+
return events_known_groups

tools/events-automation/meetup_events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Before you start, ensure you have the following:
5353
### Running the Script
5454
To fetch events, run the following command from the project directory `.../tools/events-automation`:
5555
```bash
56-
python main.py
56+
python3 main.py
5757
```
5858
This script performs the following operations:
5959
- Authenticates with the Meetup API using JWT.

0 commit comments

Comments
 (0)