TheXeos commited on
Commit
485e890
1 Parent(s): bc356d8

Add git pulls

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. background_task.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ def update_elos():
34
 
35
 
36
  def get_elo_data() -> pd.DataFrame:
 
37
  data = pd.read_csv(os.path.join(DATASET_REPO_URL, "resolve", "main", ELO_FILENAME))
38
  return data
39
 
 
34
 
35
 
36
  def get_elo_data() -> pd.DataFrame:
37
+ repo.git_pull()
38
  data = pd.read_csv(os.path.join(DATASET_REPO_URL, "resolve", "main", ELO_FILENAME))
39
  return data
40
 
background_task.py CHANGED
@@ -113,6 +113,7 @@ class Matchmaking:
113
  data_dict["games_played"].append(model.games_played)
114
  df = pd.DataFrame(data_dict)
115
  print(df.head())
 
116
  df.to_csv(os.path.join(ELO_DIR, ELO_FILENAME), index=False)
117
  repo.push_to_hub(commit_message="Update ELO")
118
 
 
113
  data_dict["games_played"].append(model.games_played)
114
  df = pd.DataFrame(data_dict)
115
  print(df.head())
116
+ repo.git_pull()
117
  df.to_csv(os.path.join(ELO_DIR, ELO_FILENAME), index=False)
118
  repo.push_to_hub(commit_message="Update ELO")
119