Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Surya Narayana
/
ai-workforce-rasa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
05ced585
authored
Jan 20, 2021
by
Sai Komuravelli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tracker even changes datetime
parent
1fa643af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
actions/actions.py
actions/actions.py
View file @
05ced585
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment