mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
11 lines
252 B
Python
11 lines
252 B
Python
from flask_restful import Resource
|
|
|
|
from sql import execute, commit
|
|
|
|
|
|
class ExpandedNote(Resource):
|
|
def put(self, note_id, expanded):
|
|
execute("update notes_tree set is_expanded = ? where note_id = ?", [expanded, note_id])
|
|
|
|
commit()
|