Skip to content

Commit

Permalink
chore(docstrings): Improve topic mapping docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
saengel committed Jan 16, 2024
1 parent 677387d commit c180b5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sefaria/model/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -5714,8 +5714,9 @@ def get_topic_mapping(self, rebuild=False):

def _build_topic_mapping(self):
"""
Builds the topic mapping. The topic mapping is a dictionary with one key, the slug of the topic.
That key contains the value of another dictionary, containing the keys "en" and "he".
Builds the topic mapping. The topic mapping is a dictionary with keys, where each key
is a slug of a topic.
That key contains the value of another dictionary, with the keys "en" and "he".
The "en" field has a value of the topic's English primary title, and the "he" field has a
value of the topic's Hebrew primary title.
:returns: topic map for the given slug Dictionary
Expand Down

0 comments on commit c180b5e

Please sign in to comment.