Skip to content

Commit

Permalink
Merge branch 'refactor/geojson-handling' of github.com:hotosm/fmtm in…
Browse files Browse the repository at this point in the history
…to refactor/geojson-handling
  • Loading branch information
Sujanadh committed Jul 17, 2024
2 parents de9a743 + 4f061e3 commit 8fe079e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/backend/app/submissions/submission_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,13 @@
# return final_zip_file_path


async def gather_all_submission_csvs(
db: Session,
project: db_models.DbProject
):
async def gather_all_submission_csvs(db: Session, project: db_models.DbProject):
"""Gather all of the submission CSVs for a project.
Generate a single zip with all submissions.
"""
log.info(f"Downloading all CSV submissions for project {project.id}")


odkid = project.odkid

odk_credentials = await project_deps.get_odk_credentials(db, project.id)
Expand Down Expand Up @@ -391,7 +387,10 @@ async def get_submission_count_of_a_project(db: Session, project: db_models.DbPr


async def get_submissions_by_date(
db: Session, project: db_models.DbProject, days: int, planned_task: Optional[int] = None
db: Session,
project: db_models.DbProject,
days: int,
planned_task: Optional[int] = None,
):
"""Get submissions by date.
Expand Down
2 changes: 1 addition & 1 deletion src/backend/app/submissions/submission_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ async def update_review_state(
@router.get("/download-submission-geojson")
async def download_submission_geojson(
db: Session = Depends(database.get_db),
current_user: ProjectUserDict = Depends(mapper)
current_user: ProjectUserDict = Depends(mapper),
):
"""Download submission geojson for a specific project.
Expand Down

0 comments on commit 8fe079e

Please sign in to comment.