diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/build.py b/scripts/build.py index 03b83b3..2b6055d 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -81,13 +81,8 @@ if __name__ == '__main__': build_entry(jenv, entry) for index, entry in enumerate(published): - older = None - newer = None - if index > 0: - older = published[index-1] - if index < len(published) - 1: - newer = published[index+1] - + older = published[index:index-1] + newer = published[index:index+1] build_entry(jenv, entry, older, newer) if len(published) > 1: |