Skip to content

Commit

Permalink
Use new relative last-build link
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Jun 28, 2024
1 parent 23d477c commit 9228d5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions www/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ def get_other_repo_revs(self):

def get_last_build_date(self):
"""Get date of most recent nightly build"""
s = os.readlink(os.path.join(get_topdir(self.branch), 'lastbuild'))
s = os.path.basename(os.path.normpath(s))
s = os.readlink(os.path.join(get_topdir(self.branch), '.last'))
return datetime.date(year=int(s[:4]), month=int(s[4:6]),
day=int(s[6:8]))

Expand Down

0 comments on commit 9228d5f

Please sign in to comment.