witten
/
luminotes
Archived
1
0
Fork 0

Bug fix: when you load a particular note (or note revision) in its own window, and that note is a startup note, it shows up in the note

tree twice.
This commit is contained in:
Dan Helfman 2008-05-07 21:30:00 +00:00
parent d7f9e96604
commit ae92e04e83
1 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,8 @@ class Main_page( Page ):
u"creation" : note.creation,
} for note in notes ]
root_notes = startup_notes + ( notes and [ note for note in notes if note.object_id not in startup_note_ids ] or [] )
def json( string ):
return escape( unicode( Json( string ) ), quote = True )
@ -150,7 +152,7 @@ class Main_page( Page ):
hide_toolbar = parent_id or not notebook.read_write
),
notebook,
startup_notes + ( notes and notes or [] ),
root_notes,
recent_notes,
total_notes_count,
),