Skip to content

Commit

Permalink
fix(collector): fix last git commit date time fetching in vsc (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Jan 23, 2024
1 parent d9f00e4 commit 0ec2309
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,17 +392,10 @@ def _parse_spec(
"./a/section/footer[@class='meta-footer']//div[@class='meta-footer__column']//p[@class='meta-footer__row']",
)
logging.debug(f"parsing (vsc) spec creates_updates:{creates_updates}")
last_git_commit = datetime.datetime.strptime(
creates_updates[1]
.find_element(By.XPATH, "./b/time")
.get_attribute("datetime"),
"%Y-%m-%dT%H:%M:%S.%fZ",
)
logging.debug(f"parsing (vsc) spec last_git_commit:{last_git_commit}")
return ColorSpec(
handle,
github_stars,
last_git_commit=last_git_commit,
last_git_commit=None,
priority=0,
source=source,
)
Expand Down

0 comments on commit 0ec2309

Please sign in to comment.