mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-06-06 06:32:50 +02:00
feat: add function for cleaning dicts
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
def remove_falsey_entries(data: dict, key: str) -> dict:
|
||||
return {k: v for k, v in data.items() if v.get(key)}
|
||||
Reference in New Issue
Block a user