Skip to content

Commit

Permalink
fix: Make DataPublicationDate.date to be different to `DataPublicat…
Browse files Browse the repository at this point in the history
…ion.publicationDate` #444
  • Loading branch information
MRichards99 committed Sep 6, 2023
1 parent 9916813 commit 312c466
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/icat_db_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,9 @@ def generate_data_publication_date(self, i):
),
)
data_publication_date.publication = self.client.get("DataPublication", i)
data_publication_date.date = (
data_publication_date.publication.publicationDate.date()
data_publication_date.date = faker.date_between(
start_date=datetime.datetime(2008, 1, 1),
end_date=datetime.datetime(2023, 1, 1),
)
data_publication_date.create()

Expand Down

0 comments on commit 312c466

Please sign in to comment.