Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 6, 2023
1 parent 870c02e commit f6e015b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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")
Expand Down Expand Up @@ -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": []}

Expand Down

0 comments on commit f6e015b

Please sign in to comment.