kbberendsen commited on
Commit
163292a
1 Parent(s): b3cc530

Update app.py

Browse files

add loading notification

Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -122,6 +122,7 @@ def server(input, output, session):
122
  @reactive.Calc
123
  def get_data_1():
124
  try:
 
125
  f1_session = ff1.get_session(int(input.year()), input.track_select(), input.session_type())
126
  f1_session.load()
127
 
@@ -152,6 +153,7 @@ def server(input, output, session):
152
  @reactive.Calc
153
  def get_data_2():
154
  try:
 
155
  f1_session = ff1.get_session(int(input.year()), input.track_select(), input.session_type())
156
  f1_session.load()
157
 
 
122
  @reactive.Calc
123
  def get_data_1():
124
  try:
125
+ ui.notification_show("Data takes a couple seconds to load.", duration=3, type = 'default')
126
  f1_session = ff1.get_session(int(input.year()), input.track_select(), input.session_type())
127
  f1_session.load()
128
 
 
153
  @reactive.Calc
154
  def get_data_2():
155
  try:
156
+ ui.notification_show("Data takes a couple seconds to load.", duration=3, type = 'default')
157
  f1_session = ff1.get_session(int(input.year()), input.track_select(), input.session_type())
158
  f1_session.load()
159