From c180b5e99849dda6e52b9735df09e4fdeb5500b2 Mon Sep 17 00:00:00 2001 From: saengel Date: Tue, 16 Jan 2024 09:36:58 +0200 Subject: [PATCH] chore(docstrings): Improve topic mapping docstring --- sefaria/model/text.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sefaria/model/text.py b/sefaria/model/text.py index 4b7e61f38a..008d5c7cb4 100644 --- a/sefaria/model/text.py +++ b/sefaria/model/text.py @@ -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