Skip to content

Commit

Permalink
further restrict the range of weeks_early
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Sep 21, 2023
1 parent 62f2b4f commit 7740c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/%username/giving/pay/%payment_id.spt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ elif payin_id:
raise response.error(404, "unknown payin ID in URL path")
response.redirect(payer.path('giving/pay/stripe/%i' % payin.id))

weeks_early = request.qs.get_int('weeks_early', default=3)
weeks_early = request.qs.get_int('weeks_early', default=3, minimum=1, maximum=520)
donation_groups, n_fundable = payer.get_tips_awaiting_payment(weeks_early)
donations_not_fundable = (
donation_groups['no_provider'] +
Expand Down

0 comments on commit 7740c2c

Please sign in to comment.