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

Commit

Permalink
Make room for payment instruction ctime
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Dec 7, 2016
1 parent eec416b commit 216ad15
Showing 1 changed file with 2 additions and 2 deletions.
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", "-1m") # At most three years ago, at least one month.
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

0 comments on commit 216ad15

Please sign in to comment.