From 456c1b5fb843516d729b8871cf35c64be60f8b23 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 16 Apr 2008 01:39:24 +0000 Subject: [PATCH] Don't display recent notes on the main Luminotes notebook. --- controller/Notebooks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/Notebooks.py b/controller/Notebooks.py index a87591f..cfbe7ec 100644 --- a/controller/Notebooks.py +++ b/controller/Notebooks.py @@ -131,7 +131,8 @@ class Notebooks( object ): notebook = self.__database.load( Notebook, notebook_id ) if not notebook: raise Access_error() - result[ "recent_notes" ] = self.__database.select_many( Note, notebook.sql_load_recent_notes( start = 0, count = 10 ) ) + if notebook.name != u"Luminotes": + result[ "recent_notes" ] = self.__database.select_many( Note, notebook.sql_load_recent_notes( start = 0, count = 10 ) ) # if the user doesn't have any storage bytes yet, they're a new user, so see what type of # conversion this is (demo or signup)