diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-03 23:17:21 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-03 23:17:21 +0200 |
| commit | 1070d4b87f664e85ff7defa530727c97337d16db (patch) | |
| tree | 471bee57ad263527540a70f5e09be5dffeac44dd /cli | |
| parent | 0325476d87d102f817108112772d39a64b5d1419 (diff) | |
saving nodes!!
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/app/controllers/tile_controller.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/app/controllers/tile_controller.py b/cli/app/controllers/tile_controller.py index 6e68cb9..3fddbec 100644 --- a/cli/app/controllers/tile_controller.py +++ b/cli/app/controllers/tile_controller.py @@ -21,6 +21,14 @@ class TileView(CrudView): def on_create(self, session, form, item): item.settings = form['settings'] + item.graph_id = int(form['graph_id']) + item.page_id = int(form['page_id']) + if 'target_page_id' in form and form['target_page_id']: + item.target_page_id = int(form['target_page_id']) def on_update(self, session, form, item): item.settings = form['settings'] + if 'target_page_id' in form and form['target_page_id']: + item.target_page_id = int(form['target_page_id']) + else: + item.target_page_id = None |
