Skip to content

Commit 029ade7

Browse files
authored
Update fetch.py (#40)
1 parent 96c146c commit 029ade7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/clone-tracking/fetch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def main(repo):
4444
else:
4545
df_clones_historical = pd.DataFrame(columns=["clone_count"])
4646

47+
# Ensure that the index is a datetime object
48+
df_clones.index = pd.to_datetime(df_clones.index)
49+
df_clones_historical.index = pd.to_datetime(df_clones_historical.index)
50+
4751
if len(df_clones):
4852
# Merge df_clones and df_clones_historical.
4953
df_clones = pd.concat([df_clones_historical, df_clones], axis=0)

0 commit comments

Comments
 (0)