smomtaz commited on
Commit
714bb18
·
verified ·
1 Parent(s): c8ac106

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +6 -0
server.py CHANGED
@@ -134,6 +134,12 @@ def create_server(app_dir):
134
  #return ui.HTML(fig.to_html())
135
  #return ui.HTML(fig.to_html(full_html=False, include_plotlyjs="cdn"))
136
 
 
 
 
 
 
 
137
  @reactive.Calc
138
  def sheet_data():
139
  sheet_name = selected_sheet()
 
134
  #return ui.HTML(fig.to_html())
135
  #return ui.HTML(fig.to_html(full_html=False, include_plotlyjs="cdn"))
136
 
137
+ @reactive.Calc
138
+ def selected_sheet():
139
+ """Get the corresponding sheet name for the selected question."""
140
+ question = input.question_selector()
141
+ return QUESTION_TO_SHEET.get(question, None)
142
+
143
  @reactive.Calc
144
  def sheet_data():
145
  sheet_name = selected_sheet()