diff options
Diffstat (limited to 'pysite/migrations/tables/wiki/v1.py')
-rw-r--r-- | pysite/migrations/tables/wiki/v1.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pysite/migrations/tables/wiki/v1.py b/pysite/migrations/tables/wiki/v1.py index a5282f28..22670342 100644 --- a/pysite/migrations/tables/wiki/v1.py +++ b/pysite/migrations/tables/wiki/v1.py @@ -1,4 +1,8 @@ def run(db, table, table_obj): + """ + Ensure that there are no wiki articles that don't have titles + """ + for document in db.pluck(table, table_obj.primary_key, "title"): if not document.get("title"): document["title"] = "No Title" |