diff options
-rw-r--r-- | cgi-bin/config.py | 1 | ||||
-rw-r--r-- | cgi-bin/link.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cgi-bin/config.py b/cgi-bin/config.py index de855dd..945d3dc 100644 --- a/cgi-bin/config.py +++ b/cgi-bin/config.py @@ -2,3 +2,4 @@ datadir='img/' root='' special = ('index', 'latest') pagination = 30 +delay = 1 diff --git a/cgi-bin/link.py b/cgi-bin/link.py index 1bc69ac..3b4baf5 100644 --- a/cgi-bin/link.py +++ b/cgi-bin/link.py @@ -78,7 +78,7 @@ class Link: date=date[0] curdate=datetime.datetime.strptime(date, "%Y%m%d%H%M") if delta.endswith('m'): - num = 10 + num = config.delay else: num = 1 if delta.startswith('-'): |