patcon / bikebikeshareshare-bot

A bot for watching a Signal messenger group, and sharing bikeshare pin codes for those who ask.
0 stars 1 forks source link

Allow trip status/duration to be checked when open #17

Closed patcon closed 3 years ago

patcon commented 3 years ago

Right now, "🔒⬅️🚲" only checks for the last completed ride time. If it's run before the bike is checked in, it shows the last complete trip (e.g. potentially days prior). It would be better if it also scanned for open trips here :)

We need a way to check one or other. Is may involve unsetting "?open=false" on API call, or perhaps running two queries (on for true and one for false) to catch all the trips