Skip to content

Commit c6c37ee

Browse files
committed
incorrect usage of computer.calendar in system message
changes end to end_date to reflect the API
1 parent d54c06e commit c6c37ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

interpreter/core/default_system_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
```python
1919
computer.browser.search(query) # Google search results will be returned from this function as a string
2020
computer.files.edit(path_to_file, original_text, replacement_text) # Edit a file
21-
computer.calendar.create_event(title="Meeting", start_date=datetime.datetime.now(), end=datetime.datetime.now() + datetime.timedelta(hours=1), notes="Note", location="") # Creates a calendar event
21+
computer.calendar.create_event(title="Meeting", start_date=datetime.datetime.now(), end_date=datetime.datetime.now() + datetime.timedelta(hours=1), notes="Note", location="") # Creates a calendar event
2222
computer.calendar.get_events(start_date=datetime.date.today(), end_date=None) # Get events between dates. If end_date is None, only gets events for start_date
2323
computer.calendar.delete_event(event_title="Meeting", start_date=datetime.datetime) # Delete a specific event with a matching title and start date, you may need to get use get_events() to find the specific event object first
2424
computer.contacts.get_phone_number("John Doe")

interpreter/terminal_interface/profiles/defaults/01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
```python
7070
result_string = computer.browser.search(query) # Google search results will be returned from this function as a string
7171
computer.files.edit(path_to_file, original_text, replacement_text) # Edit a file
72-
computer.calendar.create_event(title="Meeting", start_date=datetime.datetime.now(), end=datetime.datetime.now() + datetime.timedelta(hours=1), notes="Note", location="") # Creates a calendar event
72+
computer.calendar.create_event(title="Meeting", start_date=datetime.datetime.now(), end_date=datetime.datetime.now() + datetime.timedelta(hours=1), notes="Note", location="") # Creates a calendar event
7373
events_string = computer.calendar.get_events(start_date=datetime.date.today(), end_date=None) # Get events between dates. If end_date is None, only gets events for start_date
7474
computer.calendar.delete_event(event_title="Meeting", start_date=datetime.datetime) # Delete a specific event with a matching title and start date, you may need to get use get_events() to find the specific event object first
7575
phone_string = computer.contacts.get_phone_number("John Doe")

interpreter/terminal_interface/profiles/defaults/os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
print('''
6363
computer.browser.search(query) # Google search results will be returned from this function as a string
6464
computer.files.edit(path_to_file, original_text, replacement_text) # Edit a file
65-
computer.calendar.create_event(title="Meeting", start_date=datetime.datetime.now(), end=datetime.datetime.now() + datetime.timedelta(hours=1), notes="Note", location="") # Creates a calendar event
65+
computer.calendar.create_event(title="Meeting", start_date=datetime.datetime.now(), end_date=datetime.datetime.now() + datetime.timedelta(hours=1), notes="Note", location="") # Creates a calendar event
6666
computer.calendar.get_events(start_date=datetime.date.today(), end_date=None) # Get events between dates. If end_date is None, only gets events for start_date
6767
computer.calendar.delete_event(event_title="Meeting", start_date=datetime.datetime) # Delete a specific event with a matching title and start date, you may need to get use get_events() to find the specific event object first
6868
computer.contacts.get_phone_number("John Doe")

0 commit comments

Comments
 (0)