SHARE
TWEET

Untitled

a guest Jun 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def add_document(data: dict, country: str):
  2.     """Writes document to the database.
  3.     """
  4.  
  5.     # Guard clauses
  6.     if data.get('Name', None) is None: log.warn("Name is none. Returning"); return
  7.     if data.get('url', None) is None: log.warn("URL is none. Returning"); return
  8.     <do write>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top