Exemple #1
0
def main():
    doc_key = '1TO5Yzk0-4V_RzRK5Jr9I_pF5knZsEZrNn2HKTXrHgls'
    records = google_sheets.download(google_sheets.get(doc_key, 'logos'))

    with db:
        Logo.drop_table()
        Logo.create_table()

        for record in records:
            Logo.create(**coerce_record(record))
def create_logo(id, **kwargs):
    return Logo.create(**prepare_logo_data(id, **kwargs))