Advertisement
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.
- """
- # Gaurd 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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement