Closed sweep-ai[bot] closed 11 months ago
tasks.py
. β
Sandbox logs for https://github.com/PrenSJ2/teamworks_api/commit/06ed811bfa44ad9a348af1dc93dd24cc96429874
trunk fmt tasks.py || exit 0
1/2 ββ Formatted tasks.py Re-checking autofixed files... β Formatted tasks.py Re-checking autofixed files... Checked 1 file β No issues Run trunk upgrade to upgrade 1 linter
trunk check --fix --print-failures tasks.py
2/2 βISSUES tasks.py:359:0 359:0 medium Requests call without timeout bandit/B113 Checked 1 file 1 existing issue
PR Feedback (click)
Description
This pull request updates the refund policy based on the cancellation policy for trips. It also includes some code refactoring and improvements.
Summary
handle_refund
function to check the cancellation policy of the property and calculate the refund amount accordingly.process_cancel_refund
to handle the cancellation refund process.create_cal_for_property
function to use consistent naming conventions and improve readability.create_trips_from_ics
to create trips from an external iCal calendar.auto_complete
function to handle the completion of trips based on the current time and trip end time.Fixes #32.
π Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!π‘ To get Sweep to edit this pull request, you can: