Skip to content

Commit

Permalink
Update python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
companje committed Mar 14, 2023
1 parent 05b5622 commit 02d9c92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
title: Python
---

# filter out keys that are not in expected_keys
```python
expected_keys = ["filename", "aktenummer", "overlijdensdatum"]
data = dict(filter(lambda x: x[0] in expected_keys, data.items()))
```

# call a remote function running with Flask
```bash
URL=http://URL
Expand Down

0 comments on commit 02d9c92

Please sign in to comment.