Skip to content

Commit 31ef6e5

Browse files
committed
Add comments to __get_search_url
1 parent 01751b2 commit 31ef6e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/arguments/utility.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def __init__(self):
3232
self.search_content_url = "https://api.stackexchange.com/"
3333

3434
def __get_search_url(self, question, tags):
35+
"""
36+
This function returns the url that contains all the custom
37+
data provided by the user such as tags and question, which
38+
can finally be used to get answers
39+
"""
3540
return f"{self.search_content_url}/2.2/search/advanced?order=desc&sort=relevance&tagged={tags}&title={question}&site=stackoverflow"
3641

3742
def make_request(self, que, tag: str):

0 commit comments

Comments
 (0)