CosmoAI commited on
Commit
a90f24b
·
1 Parent(s): 8494dad

Update getvalues.py

Browse files
Files changed (1) hide show
  1. getvalues.py +10 -1
getvalues.py CHANGED
@@ -73,7 +73,16 @@ def getValues(query):
73
  date = findDate(query)
74
  month = findMonth(query)
75
  day = findDay(query)
76
- message = query.lower().replace(time, "").replace(day, "").replace(reps, "").replace("remind me", "").replace("remind me to", "").replace("remind", "")
 
 
 
 
 
 
 
 
 
77
  return message, time, day, date, reps, num, month
78
 
79
  # query = "remind me to work on my portfolio at 5:00 pm tomorrow"
 
73
  date = findDate(query)
74
  month = findMonth(query)
75
  day = findDay(query)
76
+ if time is not None:
77
+ if day is not None:
78
+ if reps is not None:
79
+ message = query.lower().replace(time, "").replace(day, "").replace(reps, "").replace("remind me", "").replace("remind me to", "").replace("remind", "")
80
+ else:
81
+ message = query.lower().replace(time, "").replace(day, "").replace("remind me", "").replace("remind me to", "").replace("remind", "")
82
+ else:
83
+ message = query.lower().replace(time, "").replace("remind me", "").replace("remind me to", "").replace("remind", "")
84
+ else:
85
+ message = query.lower().replace("remind me", "").replace("remind me to", "").replace("remind", "")
86
  return message, time, day, date, reps, num, month
87
 
88
  # query = "remind me to work on my portfolio at 5:00 pm tomorrow"