patrickramos commited on
Commit
36c7a6c
·
1 Parent(s): a97db14

Add tracking for last udpate

Browse files
Files changed (2) hide show
  1. app.py +7 -3
  2. updated.txt +1 -0
app.py CHANGED
@@ -9,9 +9,12 @@ from css import css
9
 
10
  mpl.use('Agg')
11
 
12
- updated = '2025-07-21'
 
 
 
13
  limitations = '''**General Limitations**
14
- - As new players make their debut, some names may not be translated/transliterated correctly.
15
  '''
16
 
17
  if __name__ == '__main__':
@@ -23,6 +26,7 @@ if __name__ == '__main__':
23
  with gr.Tab('Daily/Weekly Leaderboard'):
24
  create_daily_weekly_leaderboard_app(data_df)
25
 
26
- gr.Markdown(f'Last updated: {updated}')
 
27
  gr.Markdown(limitations)
28
  app.launch()
 
9
 
10
  mpl.use('Agg')
11
 
12
+ latest_data_date = data_df['date'].max()
13
+ with open('updated.txt') as f:
14
+ updated = f.read().strip()
15
+
16
  limitations = '''**General Limitations**
17
+ - As new players make their debut, some names may not be missing or translated/transliterated correctly.
18
  '''
19
 
20
  if __name__ == '__main__':
 
26
  with gr.Tab('Daily/Weekly Leaderboard'):
27
  create_daily_weekly_leaderboard_app(data_df)
28
 
29
+ gr.Markdown(f'**Data up to:** {latest_data_date}')
30
+ gr.Markdown(f'**Last updated:** {updated}')
31
  gr.Markdown(limitations)
32
  app.launch()
updated.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 2025-08-14