Skip to content

Commit

Permalink
No need for register_secret, that will be handled automatically - refs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 27, 2024
1 parent 5e06d06 commit 3463ec6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ Examples of enrichments that use this mechanism include [datasette-enrichments-o
To define a secret that your plugin needs, add the following code:

```python
from datasette import hookimpl
from datasette_enrichments import Enrichment
from datasette_secrets import Secret

Expand All @@ -225,10 +224,6 @@ train_enthusiasts_api_key = Secret(
obtain_label="Get an API key"
)

@hookimpl
def register_secrets():
return [train_enthusiasts_api_key]

# Then later in your enrichments class
class TrainEnthusiastsEnrichment(Enrichment):
name = "Train Enthusiasts"
Expand Down

0 comments on commit 3463ec6

Please sign in to comment.