def is_json_unique(db, json_object): """ Checks if the url of this post is present in the database already """ q = Query() if len(db.search(q.url == json_object['url'])) == 0: return True return False