Francisco Aranda commited on
Commit
95feb70
·
1 Parent(s): f420a36

chore: Remove some events

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +1 -1
README.md CHANGED
@@ -15,7 +15,7 @@ This space is a basic server webhooks example to show how to set up webhook list
15
 
16
  The application defines three webhook listeners for the following events:
17
 
18
- - Record events: `record.created`, `record.updated`, `record.deleted`, `record.completed`
19
  - Dataset events: `dataset.created`, `dataset.updated`, `dataset.deleted`, `dataset.published`
20
  - Response events: `response.created`, `response.updated`
21
 
 
15
 
16
  The application defines three webhook listeners for the following events:
17
 
18
+ - Record events: `record.deleted`, `record.completed`
19
  - Dataset events: `dataset.created`, `dataset.updated`, `dataset.deleted`, `dataset.published`
20
  - Response events: `response.created`, `response.updated`
21
 
app.py CHANGED
@@ -19,7 +19,7 @@ for webhook in client.webhooks:
19
 
20
 
21
  # Create a webhook for record events
22
- @rg.webhook_listener(events=["record.created", "record.updated", "record.deleted", "record.completed"])
23
  async def record_events(record: rg.Record, type: str, timestamp: datetime):
24
  print(f"Received event type {type} at {timestamp}: ", record)
25
 
 
19
 
20
 
21
  # Create a webhook for record events
22
+ @rg.webhook_listener(events=["record.deleted", "record.completed"])
23
  async def record_events(record: rg.Record, type: str, timestamp: datetime):
24
  print(f"Received event type {type} at {timestamp}: ", record)
25