mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
create a subscription in fake_data
This commit is contained in:
parent
469024179c
commit
3442250bb1
1 changed files with 11 additions and 0 deletions
11
server.py
11
server.py
|
@ -104,7 +104,18 @@ def fake_data():
|
||||||
activated=True,
|
activated=True,
|
||||||
is_admin=True,
|
is_admin=True,
|
||||||
)
|
)
|
||||||
|
db.session.commit()
|
||||||
|
|
||||||
|
# Create a subscription for user
|
||||||
|
Subscription.create(
|
||||||
|
user_id=user.id,
|
||||||
|
cancel_url="https://checkout.paddle.com/subscription/cancel?user=1234",
|
||||||
|
update_url="https://checkout.paddle.com/subscription/update?user=1234",
|
||||||
|
subscription_id="123",
|
||||||
|
event_time=arrow.now(),
|
||||||
|
next_bill_date=arrow.now().shift(days=1),
|
||||||
|
plan=PlanEnum.monthly,
|
||||||
|
)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
GenEmail.create_new_gen_email(user_id=user.id)
|
GenEmail.create_new_gen_email(user_id=user.id)
|
||||||
|
|
Loading…
Reference in a new issue