lunarflu HF staff commited on
Commit
51d8ee2
1 Parent(s): d6f4eb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -86,7 +86,7 @@ async def on_ready():
86
  await periodic_api_test()
87
  print(f"------------------------------------------------------------------------")
88
  except Exception as e:
89
- print(f"on_message Error: {e}")
90
 
91
 
92
  def update_google_sheet():
@@ -104,14 +104,14 @@ def update_google_sheet():
104
  "type": 'TEXT',
105
  },
106
  })
107
- worksheet2['discord_user_id'] = worksheet2['discord_user_id'].astype(str)
108
- worksheet2['id_recover_test'] = worksheet2['id_recover_test'].astype(str)
109
  set_with_dataframe(worksheet2, worksheet2_df)
110
  timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
111
  print(f"Google sheet {name} successfully updated at {timestamp}! \n{global_df}")
112
  print(f"------------------------------------------------------------------------")
113
  except Exception as e:
114
- print(f"on_message Error: {e}")
115
 
116
 
117
 
 
86
  await periodic_api_test()
87
  print(f"------------------------------------------------------------------------")
88
  except Exception as e:
89
+ print(f"on_ready Error: {e}")
90
 
91
 
92
  def update_google_sheet():
 
104
  "type": 'TEXT',
105
  },
106
  })
107
+ worksheet2_df['discord_user_id'] = worksheet2_df['discord_user_id'].astype(str)
108
+ worksheet2_df['id_recover_test'] = worksheet2_df['id_recover_test'].astype(str)
109
  set_with_dataframe(worksheet2, worksheet2_df)
110
  timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
111
  print(f"Google sheet {name} successfully updated at {timestamp}! \n{global_df}")
112
  print(f"------------------------------------------------------------------------")
113
  except Exception as e:
114
+ print(f"update_google_sheet Error: {e}")
115
 
116
 
117