a guest Jun 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def add_document(data: dict, country: str):
- """Writes document to the database.
- # Guard clauses
- if data.get('Name', None) is None: log.warn("Name is none. Returning"); return
- if data.get('url', None) is None: log.warn("URL is none. Returning"); return
- <do write>
RAW Paste Data