Commit 05ced585 by Sai Komuravelli

tracker even changes datetime

parent 1fa643af
Showing with 9 additions and 1 deletions
......@@ -161,7 +161,15 @@ class greet_primary_information(FormAction):
print(value)
print("OUT")
try:
timeentity=tracker.events[-1]['parse_data']['entities'][0]['value']
print("tracker.events ", type(tracker.events))
print("tracker.events ", tracker.events)
trackerEvents = tracker.events
print()
for eachDict in trackerEvents:
if 'name' in eachDict:
if eachDict['name'] == 'time':
timeentity=eachDict['value']
#timeentity=tracker.events[-1]['parse_data']['entities'][0]['value']
matchedDate = datetime.strptime(timeentity, "%Y-%m-%dT%H:%M:%S.000+00:00").strftime('%Y-%m-%d %H:%M:%S')
print("matchedDate",matchedDate)
# Since both the fields are populated, the form
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment