Skip to content

Commit

Permalink
FIX: use arrow timestamp not arrow directly (#2301)
Browse files Browse the repository at this point in the history
  • Loading branch information
acasajus authored Nov 5, 2024
1 parent 18a299f commit 9920ed0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/dashboard/views/lifetime_licence.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def lifetime_licence():
user=current_user,
content=EventContent(
user_plan_change=UserPlanChanged(
plan_end_time=arrow.get("2100-01-01")
plan_end_time=arrow.get("2100-01-01").timestamp
)
),
)
Expand Down
2 changes: 1 addition & 1 deletion oneshot/send_lifetime_user_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
if not partner_user.user.lifetime:
continue
with_lifetime += 1
event = UserPlanChanged(plan_end_time=arrow.get("2100-01-01"))
event = UserPlanChanged(plan_end_time=arrow.get("2100-01-01").timestamp)
EventDispatcher.send_event(
partner_user.user, EventContent(user_plan_change=event)
)
Expand Down
2 changes: 1 addition & 1 deletion oneshot/send_plan_change_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
end_timestamp = None
if partner_user.user.lifetime:
with_lifetime += 1
end_timestamp = arrow.get("2100-01-01")
end_timestamp = arrow.get("2100-01-01").timestamp
elif subscription_end:
with_premium += 1
end_timestamp = subscription_end.timestamp
Expand Down

0 comments on commit 9920ed0

Please sign in to comment.