Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Fix Faker again #4225

Merged
merged 1 commit into from
Dec 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gratipay/utils/fake_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def fake_participant(db, is_admin=False, random_identities=True):

"""
username = faker.first_name() + fake_text_id(3)
ctime = faker.date_time_between("-3y") # Atmost three years ago.
ctime = faker.date_time_between("-3y", "-4w") # At most three years ago, at least four weeks.
try:
insert_fake_data( db
, "participants"
Expand Down Expand Up @@ -170,7 +170,7 @@ def fake_payment_instruction(db, participant, team):
"""Create a fake payment_instruction
"""
start_date = max(participant.claimed_time, team.ctime)
ctime=faker.date_time_between(start_date)
ctime = faker.date_time_between(start_date)
return insert_fake_data( db
, "payment_instructions"
, ctime=ctime
Expand Down