try with import field
This commit is contained in:
parent
b297e390f7
commit
b833ad6d41
|
@ -576,6 +576,8 @@ def push_blocklist(token: str, host: str, blocklist: list[DomainBlock],
|
||||||
# Force use of the admin API, and add 'id' to the list of fields
|
# Force use of the admin API, and add 'id' to the list of fields
|
||||||
if 'id' not in import_fields:
|
if 'id' not in import_fields:
|
||||||
import_fields.append('id')
|
import_fields.append('id')
|
||||||
|
if override_private_comment:
|
||||||
|
import_fields.append('private_comment')
|
||||||
serverblocks = fetch_instance_blocklist(host, token, True, import_fields, scheme)
|
serverblocks = fetch_instance_blocklist(host, token, True, import_fields, scheme)
|
||||||
|
|
||||||
# # Convert serverblocks to a dictionary keyed by domain name
|
# # Convert serverblocks to a dictionary keyed by domain name
|
||||||
|
|
Loading…
Reference in New Issue