blob: a5282f28073acde60c1c8906b2172f5a77095662 (
plain) (
blame)
1
2
3
4
5
6
7
|
def run(db, table, table_obj):
for document in db.pluck(table, table_obj.primary_key, "title"):
if not document.get("title"):
document["title"] = "No Title"
db.insert(table, document, conflict="update", durability="soft")
db.sync(table)
|