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

Fix conversation_date_search async bug #215

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions memgpt/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def _validate_date_format(self, date_str):
try:
datetime.datetime.strptime(date_str, "%Y-%m-%d")
return True
except ValueError:
except (ValueError, TypeError):
return False

def _extract_date_from_timestamp(self, timestamp):
Expand Down Expand Up @@ -576,7 +576,7 @@ def date_search(self, start_date, end_date, count=None, start=None):
else:
return matches, len(matches)

def a_date_search(self, start_date, end_date, count=None, start=None):
async def a_date_search(self, start_date, end_date, count=None, start=None):
return self.date_search(start_date, end_date, count, start)


Expand Down
Loading