From f6e015b82d6ed2219f8730eca0d827db82c8c0d8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Oct 2023 08:55:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/backend/app/projects/project_crud.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index 867eb9d444..3b94d8739b 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -40,8 +40,8 @@ from geoalchemy2.shape import from_shape from geojson import dump from loguru import logger as log -from osm_fieldwork.filter_data import FilterData from osm_fieldwork import basemapper +from osm_fieldwork.filter_data import FilterData from osm_fieldwork.json2osm import json2osm from osm_fieldwork.OdkCentral import OdkAppUser from osm_fieldwork.xlsforms import xlsforms_path @@ -1449,7 +1449,6 @@ def generate_appuser_files( one = result.first() if one: - # Get odk credentials from project. odk_credentials = { "odk_central_url": one.odk_central_url, @@ -1470,7 +1469,6 @@ def generate_appuser_files( else: xlsform = f"{xlsforms_path}/{xform_title}.xls" - # Data Extracts if extracts_contents is not None: project_log.info("Uploading data extracts") @@ -1503,7 +1501,7 @@ def generate_appuser_files( boundary = {"type": "Feature", "properties": {}, "geometry": outline} data_extract = pg.execQuery(boundary) filter = FilterData(xlsform) - filtered_data_extract= filter.cleanData(data_extract) + filtered_data_extract = filter.cleanData(data_extract) updated_data_extract = {"type": "FeatureCollection", "features": []}