]> git.phdru.name Git - m_librarian.git/commitdiff
Fix(web/views/list_books): Fix a bug in series naming
authorOleg Broytman <phd@phdru.name>
Sat, 17 Dec 2022 15:35:31 +0000 (18:35 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 17 Dec 2022 17:05:50 +0000 (20:05 +0300)
Every new author reset series.

[skip ci]

m_librarian/web/views/list_books.py
m_librarian/web/views/list_books.tmpl

index c9af4b4b42d72de5fec40927dff8828ad01f89fe..210516b61f92fc77175be0f824b6598ae6013965 100644 (file)
@@ -35,12 +35,12 @@ VFFSL=valueFromFrameOrSearchList
 VFSL=valueFromSearchList
 VFN=valueForName
 currentTime=time.time
-__CHEETAH_version__ = '3.1.0'
-__CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1528755606.297172
-__CHEETAH_genTimestamp__ = 'Tue Jun 12 01:20:06 2018'
+__CHEETAH_version__ = '3.2.6'
+__CHEETAH_versionTuple__ = (3, 2, 6, 'final', 0)
+__CHEETAH_genTime__ = 1671291302.390272
+__CHEETAH_genTimestamp__ = 'Sat Dec 17 18:35:02 2022'
 __CHEETAH_src__ = 'list_books.tmpl'
-__CHEETAH_srcLastModified__ = 'Tue Jun 12 01:20:03 2018'
+__CHEETAH_srcLastModified__ = 'Sat Dec 17 18:34:51 2022'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -113,9 +113,9 @@ class list_books(layout):
 ''')
             write(u'''  </tr>
 ''')
-            series = None
             columns1 = VFFSL(SL,"len",False)(VFFSL(SL,"columns",True))+1
-            for author in VFFSL(SL,"sorted",False)(VFFSL(SL,"books_by_author",True)): # generated from line 21, col 3
+            for author in VFFSL(SL,"sorted",False)(VFFSL(SL,"books_by_author",True)): # generated from line 20, col 3
+                series = None
                 books = VFFSL(SL,"books_by_author",True)[VFFSL(SL,"author",True)]
                 for book in VFFSL(SL,"books",True): # generated from line 23, col 5
                     if VFFSL(SL,"book.series",True) != VFFSL(SL,"series",True): # generated from line 24, col 5
@@ -236,7 +236,7 @@ if not hasattr(list_books, '_initCheetahAttributes'):
 
 # CHEETAH was developed by Tavis Rudd and Mike Orr
 # with code, advice and input from many other volunteers.
-# For more information visit http://cheetahtemplate.org/
+# For more information visit https://cheetahtemplate.org/
 
 ##################################################
 ## if run from command line:
index 5d70c8885948caa00430cfc452d3f483c147db85..e5e885a98a046c77f213421184e996102a2c44bf 100644 (file)
@@ -16,9 +16,9 @@
     <td style="text-align: center">$cgi.escape($_($column))</td>
   #end for
   </tr>
-  #set $series = None
   #set $columns1 = $len($columns)+1
   #for $author in $sorted($books_by_author)
+    #set $series = None
     #set $books = $books_by_author[$author]
     #for $book in $books
     #if $book.series != $series