Skip to content

Commit

Permalink
Merge pull request #618 from hotosm/feat-edit-project
Browse files Browse the repository at this point in the history
Feat edit project
  • Loading branch information
varun2948 authored Jul 20, 2023
2 parents eb77957 + 810a799 commit 5364c0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,19 +1058,19 @@ def upload_custom_data_extracts(db: Session,

features_data = json.loads(contents)

# Data Cleaning
cleaned = FilterData()
models = xlsforms_path.replace("xlsforms", "data_models")
xlsfile = f"{category}.xls" # FIXME: for custom form
file = f"{xlsforms_path}/{xlsfile}"
if os.path.exists(file):
title, extract = cleaned.parse(file)
elif os.path.exists(f"{file}x"):
title, extract = cleaned.parse(f"{file}x")
# Remove anything in the data extract not in the choices sheet.
cleaned_data = cleaned.cleanData(features_data)

for feature in cleaned_data["features"]:
# # Data Cleaning
# cleaned = FilterData()
# models = xlsforms_path.replace("xlsforms", "data_models")
# xlsfile = f"{category}.xls" # FIXME: for custom form
# file = f"{xlsforms_path}/{xlsfile}"
# if os.path.exists(file):
# title, extract = cleaned.parse(file)
# elif os.path.exists(f"{file}x"):
# title, extract = cleaned.parse(f"{file}x")
# # Remove anything in the data extract not in the choices sheet.
# cleaned_data = cleaned.cleanData(features_data)

for feature in features_data["features"]:

feature_shape = shape(feature['geometry'])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const ProjectInfoSidebar = ({ taskInfo }) => {
},
}}
>
<CoreModules.Box sx={{ borderBottom: "1px solid #F0F0F0" }}>
{/* <CoreModules.Box sx={{ borderBottom: "1px solid #F0F0F0" }}>
<CoreModules.Typography variant="h1">
Api Listing
</CoreModules.Typography>
Expand All @@ -124,7 +124,7 @@ const ProjectInfoSidebar = ({ taskInfo }) => {
<ProjectCard />
<ProjectCard />
<ProjectCard />
</CoreModules.Box>
</CoreModules.Box> */}
</CoreModules.Card>
</CoreModules.Box>
);
Expand Down

0 comments on commit 5364c0f

Please sign in to comment.