From 58ebea6e6e9d8b2a386475b139295120eecc255c Mon Sep 17 00:00:00 2001 From: Nicolas B Date: Wed, 4 Jul 2018 08:14:02 +0200 Subject: [PATCH] Add 1 year expiration time --- zerobin/paste.py | 1 + zerobin/views/404.tpl | 3 ++- zerobin/views/home.tpl | 1 + zerobin/views/paste.tpl | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/zerobin/paste.py b/zerobin/paste.py index 5662332..2a31bc6 100644 --- a/zerobin/paste.py +++ b/zerobin/paste.py @@ -24,6 +24,7 @@ class Paste(object): DURATIONS = { '1_day': 24 * 3600, '1_month': 30 * 24 * 3600, + '1_year': 365 * 24 * 3600, 'never': 365 * 24 * 3600 * 100, } diff --git a/zerobin/views/404.tpl b/zerobin/views/404.tpl index 6e4dd4b..f226ac1 100644 --- a/zerobin/views/404.tpl +++ b/zerobin/views/404.tpl @@ -22,6 +22,7 @@ + @@ -37,4 +38,4 @@ -% rebase('base', settings=settings, pastes_count=pastes_count) \ No newline at end of file +% rebase('base', settings=settings, pastes_count=pastes_count) diff --git a/zerobin/views/home.tpl b/zerobin/views/home.tpl index bb6beaa..978bd6c 100644 --- a/zerobin/views/home.tpl +++ b/zerobin/views/home.tpl @@ -10,6 +10,7 @@ + diff --git a/zerobin/views/paste.tpl b/zerobin/views/paste.tpl index 7ade2fc..3482480 100644 --- a/zerobin/views/paste.tpl +++ b/zerobin/views/paste.tpl @@ -66,6 +66,7 @@ +