Skip to content

Commit

Permalink
Remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Aug 8, 2024
1 parent be7505e commit 9c9a300
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
15 changes: 0 additions & 15 deletions kpi/deployment_backends/base_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,6 @@ def get_submission(
pass
return None

@abc.abstractmethod
def get_submission_detail_url(self, submission_id: int) -> str:
pass

def get_submission_validation_status_url(self, submission_id: int) -> str:
url = '{detail_url}validation_status/'.format(
detail_url=self.get_submission_detail_url(submission_id)
)
return url

@abc.abstractmethod
def get_submissions(
self,
Expand Down Expand Up @@ -501,11 +491,6 @@ def submission_count_since_date(
):
pass

@property
@abc.abstractmethod
def submission_list_url(self):
pass

@property
@abc.abstractmethod
def submission_model(self):
Expand Down
21 changes: 0 additions & 21 deletions kpi/deployment_backends/openrosa_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,18 +713,6 @@ def get_orphan_postgres_submissions(self) -> Optional[QuerySet, bool]:
except InvalidXFormException:
return None

def get_submission_detail_url(self, submission_id: int) -> str:
1/0
#url = f'{self.submission_list_url}/{submission_id}'
#return url

def get_submission_validation_status_url(self, submission_id: int) -> str:
1/0
#url = '{detail_url}/validation_status'.format(
# detail_url=self.get_submission_detail_url(submission_id)
#)
#return url

def get_submissions(
self,
user: settings.AUTH_USER_MODEL,
Expand Down Expand Up @@ -1187,15 +1175,6 @@ def submission_count_since_date(self, start_date=None):
else:
return total_submissions['count_sum']

@property
def submission_list_url(self):
1/0
#url = '{kc_base}/api/v1/data/{formid}'.format(
# kc_base=settings.KOBOCAT_INTERNAL_URL,
# formid=self.backend_response['formid']
#)
#return url

@property
def submission_model(self):
return Instance
Expand Down

0 comments on commit 9c9a300

Please sign in to comment.