summaryrefslogtreecommitdiffstats
path: root/doc-publik
diff options
context:
space:
mode:
Diffstat (limited to 'doc-publik')
-rw-r--r--doc-publik/update-publik-doc-from-redmine.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc-publik/update-publik-doc-from-redmine.py b/doc-publik/update-publik-doc-from-redmine.py
index 19ee890..0474453 100644
--- a/doc-publik/update-publik-doc-from-redmine.py
+++ b/doc-publik/update-publik-doc-from-redmine.py
@@ -12,9 +12,7 @@ DOCS = {
'redmine-contribuer-a-publik': "https://dev.entrouvert.org/projects/publik/wiki/Contribuer_%C3%A0_Publik.html",
}
-for cell in TextCell.objects.all():
- if not cell.slug in DOCS:
- continue
+for cell in TextCell.objects.filter(slug__in=DOCS.keys(), page__snapshot__isnull=True):
resp = requests.get(DOCS[cell.slug])
if resp.status_code != 200:
continue