Initial commit
This commit is contained in:
commit
73d16c9b69
26 files changed
+1660
No files matched your search
@@ -0,0 +1,13 @@
|
||||
def group_into_pages(scenes, mode="normal"):
|
||||
if mode == "tiny":
|
||||
return [[s] for s in scenes]
|
||||
pages = []
|
||||
temp = []
|
||||
for s in scenes:
|
||||
temp.append(s)
|
||||
if len(temp) == 3:
|
||||
pages.append(temp)
|
||||
temp = []
|
||||
if temp:
|
||||
pages.append(temp)
|
||||
return pages
|
||||
Reference in new issue
Block a user