guardian / guardian/google-ad-database-processing-scripts

Missing col in sqlite table?

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
15
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Looks like scraperwiki is looking for a "video_type" col - which doesn't automatically exist in the scraperwiki.sqlite file (at least not mine)

(manually adding that field allows script to run btw)

```
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: video_type
[SQL: select * from aus_ads where Ad_Type='Video' AND video_type IS NULL]

```

Cols I do automatically have:

Ad_ID
Ad_URL
Ad_Type
Regions
Advertiser_ID
Advertiser_Name
Ad_Campaigns_List
Date_Range_Start
Date_Range_End
Num_of_Days
Impressions
Spend_USD
First_Served_Timestamp
Last_Served_Timestamp
Age_Targeting
Gender_Targeting
Geo_Targeting_Included
Geo_Targeting_Excluded
Spend_Range_Min_USD
Spend_Range_Max_USD
Spend_Range_Min_AUD
Spend_Range_Max_AUD

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.