Beispiel #1
0
def updateNote(id):
    if db.isAuthor(id, getUser()):
        db.updateNote(id, request.forms.get('time'), request.forms.get('text'))
        return {'ack': 1}
    else:
        return {'ack': 0, 'msg': 'You do not have permission update this note'}
Beispiel #2
0
 def test_updateNote(self):
     db.updateNote(20, 'hello', 'world')
     assert True
Beispiel #3
0
 def test_updateNote(self):
     db.updateNote(20, "hello", "world")
     assert True