lunarflu HF staff commited on
Commit
26d0ad5
1 Parent(s): 66cef69

print(type(global_df))

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -50,6 +50,7 @@ api = HfApi()
50
  """"""
51
  #csv_file = 'data.csv'
52
  global_df = pd.DataFrame()
 
53
  data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
54
 
55
  @bot.event
@@ -211,6 +212,7 @@ async def add_exp(member_id):
211
  member_name = member.name
212
  row_data = [member_id, member_name, xp, current_level]
213
  new_row_df = pd.DataFrame([row_data], columns=global_df.columns)
 
214
  updated_df = global_df.append(new_row_df, ignore_index=True)
215
  # initial role assignment
216
  if current_level == 1:
 
50
  """"""
51
  #csv_file = 'data.csv'
52
  global_df = pd.DataFrame()
53
+ print(type(global_df))
54
  data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
55
 
56
  @bot.event
 
212
  member_name = member.name
213
  row_data = [member_id, member_name, xp, current_level]
214
  new_row_df = pd.DataFrame([row_data], columns=global_df.columns)
215
+ print(type(global_df))
216
  updated_df = global_df.append(new_row_df, ignore_index=True)
217
  # initial role assignment
218
  if current_level == 1: