Skip to content

Commit

Permalink
fix(api texts): add underscore to calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
YishaiGlasner committed Jun 18, 2023
1 parent 16852b0 commit 37d2459
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions api/texts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _append_required_versions(self, lang, vtitle=None):
if version not in self.return_obj['versions']:
self.return_obj['versions'].append(version)
if not versions:
self.handle_errors(lang, vtitle)
self._handle_errors(lang, vtitle)

def _handle_version_params(self, version_params):
if version_params in self.handled_version_params:
Expand All @@ -62,7 +62,7 @@ def _handle_version_params(self, version_params):
else:
lang, vtitle = version_params.split('|', 1)
vtitle = vtitle.replace('_', ' ')
self.append_required_versions(lang, vtitle)
self._append_required_versions(lang, vtitle)
self.handled_version_params.append(version_params)

def _add_text_to_versions(self):
Expand Down Expand Up @@ -151,7 +151,7 @@ def _add_index_data(self):
'isComplex': index.is_complex(),
'isDependant': index.is_dependant_text(),
'order': getattr(index, 'order', ''),
'alts': self.reduce_alts_to_ref(),
'alts': self._reduce_alts_to_ref(),
})

def _add_node_data(self):
Expand All @@ -175,9 +175,9 @@ def _add_node_data(self):
def get_versions_for_query(self):
for version_params in self.versions_params:
self.current_params = version_params
self.handle_version_params(version_params)
self.add_text_to_versions()
self.add_ref_data()
self.add_index_data()
self.add_node_data()
self._handle_version_params(version_params)
self._add_text_to_versions()
self._add_ref_data()
self._add_index_data()
self._add_node_data()
return self.return_obj

0 comments on commit 37d2459

Please sign in to comment.