management/upload.py
def upload_file(file_name, file_path, g_folder_id, g_drive_id):
    """
    upload file to Climate Emergency metrics folder
    """
    api = DriveIntegration(settings["GOOGLE_CLIENT_JSON"])

    print("uploading document to drive")
    url = api.upload_file(file_name, file_path, g_folder_id, g_drive_id)
    print(url)
    return url

    upload file to Climate Emergency metrics folder
    
upload file to Climate Emergency metrics folder
upload file to Climate Emergency metrics folder
def upload_file(file_name, file_path, g_folder_id, g_drive_id):
    api = DriveIntegration(settings["GOOGLE_CLIENT_JSON"])
    print("uploading document to drive")
    url = api.upload_file(file_name, file_path, g_folder_id, g_drive_id)
    print(url)
    return url
def upload_file ( file_name , file_path , g_folder_id , g_drive_id ) : api = DriveIntegration ( settings [ "GOOGLE_CLIENT_JSON" ] ) print ( "uploading document to drive" ) url = api . upload_file ( file_name , file_path , g_folder_id , g_drive_id ) print ( url ) return url
upload file to Climate Emergency metrics folder
upload file to Climate Emergency metrics folder
"""
    upload file to Climate Emergency metrics folder
    """
file_name
file_path
g_folder_id
g_drive_id