File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ def edit_note_checkboxes(note):
137
137
for item in note .items :
138
138
if item .id not in [parts ['id' ] for parts in current_items ]:
139
139
item .delete ()
140
+ print ('Deleted "%s"' % item .text )
140
141
141
142
last_added = None
142
143
for parts in current_items :
@@ -149,23 +150,30 @@ def edit_note_checkboxes(note):
149
150
if parts ['indented' ]:
150
151
previous .indent (added )
151
152
last_added = added
153
+ print ('Added "%s"' % parts ['content' ])
152
154
153
155
# Modification
154
156
else :
157
+ updated = False
155
158
if parts ['old' ].indented and not parts ['indented' ]:
156
159
if previous != None :
157
160
previous .dedent (parts ['old' ])
161
+ updated = True
158
162
if not parts ['old' ].indented and parts ['indented' ]:
159
163
if previous != None :
160
164
previous .indent (parts ['old' ])
161
-
165
+ updated = True
162
166
if parts ['old' ].checked and not parts ['checked' ]:
163
167
parts ['old' ].checked = False
168
+ updated = True
164
169
if not parts ['old' ].checked and parts ['checked' ]:
165
170
parts ['old' ].checked = True
166
-
171
+ updated = True
167
172
if parts ['old' ].text != parts ['content' ]:
168
173
parts ['old' ].text = parts ['content' ]
174
+ updated = True
175
+ if updated :
176
+ print ('Updated "%s"' % parts ['content' ])
169
177
170
178
171
179
def get_note_instance (keep , id = None , ** kwargs ):
You can’t perform that action at this time.
0 commit comments