Moved the NTA API Key to a separate file so I don't need to worry about accidentally committing it.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
API KEY FROM https://developer.nationaltransport.ie/ GOES HERE
|
||||
+1
-1
@@ -16,7 +16,7 @@ import shutil
|
||||
|
||||
class GTFSClient():
|
||||
GTFS_URL = "https://api.nationaltransport.ie/gtfsr/v2/gtfsr?format=json"
|
||||
API_KEY = ""
|
||||
API_KEY = open("api-key.txt").read()
|
||||
|
||||
def __init__(self, feed_url: str, stop_codes: list[str], update_queue: queue.Queue, update_interval_seconds: int = 60):
|
||||
self.stop_codes = stop_codes
|
||||
|
||||
Reference in New Issue
Block a user