From 1f54e2365bcfe7352fb4971a0a96ce3fe623f010 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 26 Feb 2024 13:47:09 +0000 Subject: [PATCH] fix: create odk projects with prepended 'FMTM xxx' to identify --- src/backend/app/central/central_crud.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/backend/app/central/central_crud.py b/src/backend/app/central/central_crud.py index 95de3a81dd..4c462d51c0 100644 --- a/src/backend/app/central/central_crud.py +++ b/src/backend/app/central/central_crud.py @@ -123,12 +123,15 @@ def list_odk_projects( def create_odk_project( name: str, odk_central: Optional[project_schemas.ODKCentralDecrypted] = None ): - """Create a project on a remote ODK Server.""" + """Create a project on a remote ODK Server. + + Appends FMTM to the project name to help identify on shared servers. + """ project = get_odk_project(odk_central) try: - log.debug("Attempting ODKCentral project creation") - result = project.createProject(name) + log.debug(f"Attempting ODKCentral project creation: FMTM {name}") + result = project.createProject(f"FMTM {name}") # Sometimes createProject returns a list if fails if isinstance(result, dict):