br-g / openf1

OpenF1 API - Real-time and historical Formula 1 data
MIT License
322 stars 15 forks source link

URL Fix for Ingestor #51

Open PrestonHager opened 5 months ago

PrestonHager commented 5 months ago

Fixes #50.

The function for joining URL paths has been changed from os.path.join to a custom join function:

def join(*args) -> str:
    return "/".join([e.strip("/") for e in args if e is not None and e.strip("/") != ""])