aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rossi <alexandre.rossi@gmail.com>2018-10-19 11:58:03 +0200
committerAlexandre Rossi <alexandre.rossi@gmail.com>2018-10-19 11:58:03 +0200
commitf011105cca540cb35363634e5c208c8a0186eb00 (patch)
tree0b842acc25057dd9e868acb54aa380de1a48a0fb
parentb360faca90b87f728aa4dd1d3c9e87d81e79f938 (diff)
downloadlazygal-f011105cca540cb35363634e5c208c8a0186eb00.zip
lazygal-f011105cca540cb35363634e5c208c8a0186eb00.tar.bz2
number paginated indexes from 1
-rw-r--r--lazygal/genpage.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/lazygal/genpage.py b/lazygal/genpage.py
index f0171ed..07bfc49 100644
--- a/lazygal/genpage.py
+++ b/lazygal/genpage.py
@@ -216,12 +216,10 @@ class WebalbumIndexPage(WebalbumPage):
def _get_onum_links(self):
onum_index_links = []
for onum in range(0, self.dir.break_task.how_many_pages()):
- onum_info = {}
- if onum == self.page_number:
- # No link if we're on the current page
- onum_info['name'] = onum
- else:
- onum_info['name'] = onum
+ onum_info = {
+ 'name': onum + 1,
+ }
+ if onum != self.page_number: # No link if we're on the current page
filename = self._get_paginated_name(onum)
onum_info['link'] = self._add_size_qualifier(filename + '.html',
self.size_name)