Skip to content

Commit

Permalink
refactor: Update car_wash.py with date logic and formatting improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kanak8278 committed Jul 17, 2024
1 parent 441f9b6 commit c07dbab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/tutorials/car_wash.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,9 @@ def on_enter_date_input(self):
self.status = Status.WAIT_FOR_ME
self.status = Status.WAIT_FOR_USER_INPUT

def on_enter_date_logic(self):
def on_enter_date_logic(self):
self.status = Status.WAIT_FOR_ME
task = f"The user provides a date or day, convert it into a format of YYYY-MM-DD. Today's date is {datetime.now().strftime("%Y-%m-%d")} & Day is {datetime.now().strftime("%A")}Format and modify the user input into the format required and if you could not be decide return None. Based on the user's input, return the output in json format: {{'result': <input>}}."
task = f"The user provides a date or day, convert it into a format of YYYY-MM-DD. Today's date is {datetime.now().strftime("%Y-%m-%d")} & Day is {datetime.now().strftime("%A")}. Format and modify the user input into the format required and if you could not be decide return None. Based on the user's input, return the output in json format: {{'result': <input>}}."

result = Parser.parse_user_input(
task,
Expand Down

0 comments on commit c07dbab

Please sign in to comment.