Skip to content

Commit

Permalink
fix timestamps for domsdatabasen
Browse files Browse the repository at this point in the history
  • Loading branch information
TTTTao725 committed May 30, 2024
1 parent 08cd24a commit 6b2da11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data-processing/scripts/convert_domsdatabasen_to_jsonlgz.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

from datasets import Dataset, DatasetDict, load_dataset

oldest_case = "1855-02-28T00:00:00.000Z"
date_added = datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.000Z")
case_time_span = ",".join([oldest_case, date_added])
oldest_case = "1855-02-28"
date_added = datetime.datetime.now().strftime("%Y-%m-%d")
case_time_span = ", ".join([oldest_case, date_added])


def reformat_dataset(ds: Dataset) -> Dataset:
Expand Down

0 comments on commit 6b2da11

Please sign in to comment.