1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Add 1 year expiration time

This commit is contained in:
Nicolas B 2018-07-04 08:14:02 +02:00
parent 7da1615d41
commit 58ebea6e6e
4 changed files with 5 additions and 1 deletions

View File

@ -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,
}

View File

@ -22,6 +22,7 @@
<option value="burn_after_reading">Burn after reading</option>
<option selected value="1_day">1 day</option>
<option value="1_month">1 month</option>
<option value="1_year">1 year</option>
<option value="never">Never</option>
</select>
<button type="submit" class="btn btn-primary">Submit</button>
@ -37,4 +38,4 @@
</form>
% rebase('base', settings=settings, pastes_count=pastes_count)
% rebase('base', settings=settings, pastes_count=pastes_count)

View File

@ -10,6 +10,7 @@
<option value="burn_after_reading">Burn after reading</option>
<option selected value="1_day">1 day</option>
<option value="1_month">1 month</option>
<option value="1_year">1 year</option>
<option value="never">Never</option>
</select>
<button type="submit" class="btn btn-primary">Submit</button>

View File

@ -66,6 +66,7 @@
<option value="burn_after_reading">Burn after reading</option>
<option selected value="1_day">1 day</option>
<option value="1_month">1 month</option>
<option value="1_year">1 year</option>
<option value="never">Never</option>
</select>
<button type="submit" class="btn btn-primary">Submit</button>