diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2017-03-27 18:35:45 +0200 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2017-03-27 18:35:45 +0200 |
commit | 5012cffd029922f2d9e52daec181fb640f27c9b7 (patch) | |
tree | 79574d1627f52682b8c59f5ddefbf934f85b459f /cgi-bin | |
parent | bb2488b268ee3481aaa368fc15d0a4faf2c9da20 (diff) | |
download | hnizdo-5012cffd029922f2d9e52daec181fb640f27c9b7.tar.gz hnizdo-5012cffd029922f2d9e52daec181fb640f27c9b7.tar.bz2 |
Add configurable delay between each shot
Diffstat (limited to 'cgi-bin')
-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('-'): |