Skip to content

Conversation

@k-okada
Copy link

@k-okada k-okada commented Jun 1, 2023

update version of jsk-ros-pkg#1388


# no images found
if len(results) == 0:
return {'text': '記憶がありません🤯'}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@a-ichikura もうちょっとマシな返答テキストがあれば,教えてくれると助かります.

Comment on lines +385 to +390
if parameters['date']:
startdate = datetime.datetime.strptime(re.sub('\+(\d+):(\d+)$', '+\\1\\2',parameters['date']), "%Y-%m-%dT%H:%M:%S%z")
duration = datetime.timedelta(hours=24)
if parameters['date-period']:
startdate = datetime.datetime.strptime(re.sub('\+(\d+):(\d+)$', '+\\1\\2',parameters['date-period']['startDate']), "%Y-%m-%dT%H:%M:%S%z")
duration = datetime.datetime.strptime(re.sub('\+(\d+):(\d+)$', '+\\1\\2',parameters['date-period']['endDate']), "%Y-%m-%dT%H:%M:%S%z") - startdate
Copy link

@tkmtnt7000 tkmtnt7000 Jun 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that this section cause something wrong with searching database????

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I misunderstood the problem. This section has no problem.

This is because a long search, such as a 24-hour search, will not return results until the search is completed, unless the number of data matching the condition is equal to the number of limit items.

@tkmtnt7000
Copy link

tkmtnt7000 commented Jun 2, 2023

I can almost run this node with Fetch1075 other than the items I pointed out.

$ source ~/ros/database_talker_ws/devel/setup.bash
$ roslaunch jsk_robot_startup sample_database_talker.launch

# other terminal
$ rosrun database_talker hoge.py

@sktometometo
Copy link
Owner

@tkmtnt7000 このPRってマージしたほうがいい?

@tkmtnt7000
Copy link

マージしていただけると助かります.

@sktometometo sktometometo merged commit 421a565 into sktometometo:PR/hoge-py Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants