ANIALLATOR114 / SimplyTransport

SimplyTransport - API - Website - Ingesting and presenting Transport Information
https://simplytransport.ie
Apache License 2.0
2 stars 3 forks source link

Update repo.py #129

Closed ANIALLATOR114 closed 2 months ago

ANIALLATOR114 commented 2 months ago

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.

sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

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.

File-Level Changes

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.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.