Fix folder id

This commit is contained in:
Michel Roux 2019-12-15 19:06:37 +01:00
parent b4f884b1fd
commit df335cf48e
2 changed files with 2 additions and 1 deletions

1
app.py
View File

@ -145,6 +145,7 @@ def admin_edit(link_id=None):
if link_id:
link = AnimeLink.query.filter_by(id=link_id).first()
form.folder.data = link.title.folder.id
else:
link = AnimeLink()
for attr in dir(link):

View File

@ -10,7 +10,7 @@
<div class="field column">
<div class="control is-expanded">
<div class="select is-fullwidth">
{{ action_form.folder(value=link.title.folder.id) }}
{{ action_form.folder }}
</div>
</div>
</div>