Spaces:
Sleeping
Sleeping
Aiswarya Sankar
commited on
Commit
·
e53ffab
1
Parent(s):
4db3891
update file
Browse files
app.py
CHANGED
@@ -298,8 +298,8 @@ def fetchGithubIssues(**kwargs) -> Response:
|
|
298 |
|
299 |
# This should set the state variables for tickets
|
300 |
git_tickets.value = issues_data
|
301 |
-
git_ticket_choices.value = {
|
302 |
-
git_titles.value = [
|
303 |
print("git_tickets: " + str(git_tickets.value))
|
304 |
print("git_choices: " + str(git_ticket_choices.value))
|
305 |
print("git_titles: " + str(git_titles.value))
|
|
|
298 |
|
299 |
# This should set the state variables for tickets
|
300 |
git_tickets.value = issues_data
|
301 |
+
git_ticket_choices.value = {ticket["title"]: ticket for ticket in issues_data}
|
302 |
+
git_titles.value = [ticket["title"] for ticket in issues_data]
|
303 |
print("git_tickets: " + str(git_tickets.value))
|
304 |
print("git_choices: " + str(git_ticket_choices.value))
|
305 |
print("git_titles: " + str(git_titles.value))
|