Skip to content

Commit 0ec2309

Browse files
authored
fix(collector): fix last git commit date time fetching in vsc (#163)
1 parent d9f00e4 commit 0ec2309

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

collect.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -392,17 +392,10 @@ def _parse_spec(
392392
"./a/section/footer[@class='meta-footer']//div[@class='meta-footer__column']//p[@class='meta-footer__row']",
393393
)
394394
logging.debug(f"parsing (vsc) spec creates_updates:{creates_updates}")
395-
last_git_commit = datetime.datetime.strptime(
396-
creates_updates[1]
397-
.find_element(By.XPATH, "./b/time")
398-
.get_attribute("datetime"),
399-
"%Y-%m-%dT%H:%M:%S.%fZ",
400-
)
401-
logging.debug(f"parsing (vsc) spec last_git_commit:{last_git_commit}")
402395
return ColorSpec(
403396
handle,
404397
github_stars,
405-
last_git_commit=last_git_commit,
398+
last_git_commit=None,
406399
priority=0,
407400
source=source,
408401
)

0 commit comments

Comments
 (0)