#55 Celery parcel updating
* adds celery to project * adds celery background task for updating parcels * adds parcel calculation to creating of new geometries as well * tests outstanding!!!
This commit is contained in:
@@ -15,6 +15,7 @@ from codelist.settings import CODELIST_INTERVENTION_HANDLER_ID, CODELIST_CONSERV
|
||||
CODELIST_COMPENSATION_ACTION_ID, CODELIST_COMPENSATION_ACTION_CLASS_ID, CODELIST_COMPENSATION_ADDITIONAL_TYPE_ID, \
|
||||
CODELIST_BASE_URL, CODELIST_PROCESS_TYPE_ID
|
||||
from konova.management.commands.setup import BaseKonovaCommand
|
||||
from konova.settings import PROXIES
|
||||
|
||||
bool_map = {
|
||||
"true": True,
|
||||
@@ -43,7 +44,7 @@ class Command(BaseKonovaCommand):
|
||||
|
||||
for list_id in codelist_ids:
|
||||
_url = CODELIST_BASE_URL + "/" + str(list_id)
|
||||
result = requests.get(url=_url)
|
||||
result = requests.get(url=_url, proxies=PROXIES)
|
||||
|
||||
if result.status_code != 200:
|
||||
self._write_error("Error on codelist url '{}'".format(_url))
|
||||
|
||||
Reference in New Issue
Block a user