()
Downloads a Google Doc as an Excel file.
Downloads a Google Doc as an Excel file.
Downloads a Google Doc as an Excel file .
def update():
    """
    Downloads a Google Doc as an Excel file.
    """
    if app_config.COPY_GOOGLE_DOC_KEY == None:
        logger.warn('You have set COPY_GOOGLE_DOC_KEY to None. If you want to use a Google Sheet, set COPY_GOOGLE_DOC_KEY  to the key of your sheet in app_config.py')
        return

    credentials = get_credentials()
    if not credentials:
        print logger.warn('No Google OAuth credentials file found.')
        print logger.warn('Run `fab app` and visit `http://localhost:8000` to generate credentials.')
        return

    get_document(app_config.COPY_GOOGLE_DOC_KEY, app_config.COPY_PATH)
def update ( ) : if app_config . COPY_GOOGLE_DOC_KEY == None : logger . warn ( 'You have set COPY_GOOGLE_DOC_KEY to None. If you want to use a Google Sheet, set COPY_GOOGLE_DOC_KEY  to the key of your sheet in app_config.py' ) return credentials = get_credentials ( ) if not credentials : print logger . warn ( 'No Google OAuth credentials file found.' ) print logger . warn ( 'Run `fab app` and visit `http://localhost:8000` to generate credentials.' ) return get_document ( app_config . COPY_GOOGLE_DOC_KEY , app_config . COPY_PATH )