Skip to content

Commit

Permalink
Domain expiration scanner fixes related to backend change (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Mar 6, 2024
1 parent 947ab17 commit f882313
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import os
from typing import Any, Dict, List

Expand Down Expand Up @@ -25,6 +26,8 @@ def create_reports(task_result: Dict[str, Any], language: Language) -> List[Repo

data = task_result["result"]
expiration_date_from_result = data["expiration_date"]
if isinstance(expiration_date_from_result, str):
expiration_date_from_result = datetime.datetime.fromisoformat(expiration_date_from_result)
expiration_date = expiration_date_from_result.strftime("%d-%m-%Y")

return [
Expand Down

0 comments on commit f882313

Please sign in to comment.