Another filter to skip None notes.
This commit is contained in:
parent
2b307b6690
commit
203a8f9e70
|
@ -335,7 +335,7 @@ class Notebooks( object ):
|
|||
return
|
||||
|
||||
RECENT_COUNT = 10
|
||||
notes = notebook.notes
|
||||
notes = [ note for note in notebook.notes if note is not None ]
|
||||
notes.sort( lambda a, b: cmp( b.revision, a.revision ) )
|
||||
|
||||
yield dict(
|
||||
|
|
Reference in New Issue