DontPlanToEnd commited on
Commit
acb9917
·
verified ·
1 Parent(s): aedfab9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -141,7 +141,7 @@ def load_leaderboard_data(csv_file_path):
141
  df['Test Date'] = df['Test Date'].dt.strftime('%Y-%m-%d')
142
 
143
  # Calculate the date for the 'new' emoji
144
- two_weeks_ago = (datetime.now() - timedelta(days=4)).strftime('%Y-%m-%d') # temp set to 4
145
  df['is_new'] = df.apply(
146
  lambda row: '🆕' if pd.notna(row["Test Date"]) and row["Test Date"] >= two_weeks_ago else '',
147
  axis=1
 
141
  df['Test Date'] = df['Test Date'].dt.strftime('%Y-%m-%d')
142
 
143
  # Calculate the date for the 'new' emoji
144
+ two_weeks_ago = (datetime.now() - timedelta(days=7)).strftime('%Y-%m-%d') # temp set
145
  df['is_new'] = df.apply(
146
  lambda row: '🆕' if pd.notna(row["Test Date"]) and row["Test Date"] >= two_weeks_ago else '',
147
  axis=1