Skip to content

Commit

Permalink
Update logic to return mongo userform id
Browse files Browse the repository at this point in the history
  • Loading branch information
rajpatel24 committed Oct 28, 2024
1 parent 47abf96 commit f41e936
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kpi/deployment_backends/openrosa_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,10 @@ def get_validation_status(

@property
def mongo_userform_id(self):
if self.xform.mongo_uuid:
try:
return self.xform.mongo_uuid
return f'{self.asset.owner.username}_{self.xform_id_string}'
except KeyError:
return f'{self.asset.owner.username}_{self.xform_id_string}'

@staticmethod
def nlp_tracking_data(
Expand Down

0 comments on commit f41e936

Please sign in to comment.