Add script for pausing FB

This commit is contained in:
Jean-Marie Favreau 2025-02-04 23:48:44 +01:00
parent 8db21225ff
commit 9647f77c00

9
src/scripts/set_pause.py Normal file
View File

@ -0,0 +1,9 @@
from agenda_culturel.models import RecurrentImport
def run():
rimports = RecurrentImport.objects.filter(processor="Facebook events").all()
for r in rimports:
r.downloader = "chromium (pause)"
RecurrentImport.objects.bulk_update(rimports, fields=["downloader"])