summaryrefslogtreecommitdiffstats
path: root/doc-publik/update-publik-doc-from-redmine.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-03-06 15:07:10 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-03-06 15:07:10 (GMT)
commit456ce91aefe0f5bf538ef15bf42c434fc6e204d1 (patch)
treeb0174ee3db8c46a921d790db1c0f99d2eb890eb8 /doc-publik/update-publik-doc-from-redmine.py
parent24b7cd1227ee642da67e791837bee1b4e01f6fa1 (diff)
downloadmisc-fred-456ce91aefe0f5bf538ef15bf42c434fc6e204d1.zip
misc-fred-456ce91aefe0f5bf538ef15bf42c434fc6e204d1.tar.gz
misc-fred-456ce91aefe0f5bf538ef15bf42c434fc6e204d1.tar.bz2
doc: filter cells at query level
Diffstat (limited to 'doc-publik/update-publik-doc-from-redmine.py')
-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