Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing User Preferences in DB #57

Merged
merged 15 commits into from
Oct 5, 2022
Prev Previous commit
Next Next commit
String concatenation
  • Loading branch information
Bendikchristensen committed Sep 7, 2022
commit 5bad69de541fb96c4c695669edfcf87b8c4b5f09
4 changes: 2 additions & 2 deletions Rasa_Bot/actions/actions_preparation_dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ def validate_time_stamp(
# using try-except to check for truth value
try:
res = bool(datetime.strptime(timestring, format))
logging.info("res is now:" + res)
logging.info("res is now: " + str(res))
except ValueError:
res = False

logging.info("after the value error line res is:" + res)
logging.info("after the value error line res is: " + str(res))

if not res:
dispatcher.utter_message(text=f"Please submit an answer as given by the example: 20:34:20")
Expand Down