Closed ANIALLATOR114 closed 2 months ago
This pull request updates the repo.py
file in the SimplyTransport/domain/realtime/realtime_schedule
directory. The changes introduce logging to monitor the execution time of various SQL statements and the overall function. Additionally, it adds a mechanism to randomly choose between two SQL statements for fetching stop times and trips, with one of the statements including a time filter for recent data.
Files | Changes |
---|---|
SimplyTransport/domain/realtime/realtime_schedule/repo.py |
Introduced logging for performance monitoring and added a mechanism to randomly choose between two SQL statements for fetching stop times and trips, with one statement including a time filter for recent data. |
Summary by Sourcery
Enhanced the get_realtime_schedules_for_trips method by adding detailed logging for performance monitoring and introducing a random selection mechanism between two SQL statements for fetching stop times and trips.