Skip to content

Commit

Permalink
Fix keyword and add to Seconds
Browse files Browse the repository at this point in the history
- Fix all keyword in Values
- Add one_day to Seconds
  • Loading branch information
cak committed Apr 15, 2019
1 parent 658da7e commit 5c980c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion secure/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Values:
unsafe_inline = "'unsafe-inline'"
unsafe_eval = "'unsafe-eval'"
strict_dynamic = "'strict-dynamic'"
all = "*"
all_ = "*"

@staticmethod
def nonce(nonce_value):
Expand Down Expand Up @@ -178,6 +178,7 @@ def unsafe_url(self):

class Seconds:
five_minutes = "300"
one_day = "86400"
one_week = "604800"
one_month = "2592000"
one_year = "31536000"
Expand Down

0 comments on commit 5c980c0

Please sign in to comment.