We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3af483 commit bbbcc76Copy full SHA for bbbcc76
labs/TrapheusAI/providers/github_provider.py
@@ -22,7 +22,7 @@ def connect(self, input: str):
22
return request_headers, request_params
23
24
25
- @streamlit.cache_data
+ @streamlit.cache_data(ttl=3600)
26
def query(_self, input: str):
27
request_headers, request_params = _self.connect(input)
28
response = requests.get(constants.GITHUB_END_POINT + constants.GITHUB_SEARCH_PATH, params=request_params,
@@ -31,7 +31,7 @@ def query(_self, input: str):
31
response_body = response.json()
32
return response_body
33
34
35
def extract_data(_self, input: str):
36
formatted_results = []
37
data = _self.query(input).get("items", [])
0 commit comments