8000 Add next and previous gallery in gallery · Issue #55 · Psycojoker/prosopopee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add next and previous gallery in gallery #55
Open
@beudbeud

Description

@beudbeud

in utils.py

def previous_and_next(some_iterable):
    prevs, items, nexts = tee(some_iterable, 3)
    prevs = chain([None], prevs)
    nexts = chain(islice(nexts, 1, None), [None])
    return izip(prevs, items, nexts)

for work i use this fonction but they not work well because i use it in this loop

for gallery in dirs:

but dirs is not sort by date

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0