Implement watched toggle for films in details modal
- Watched status is stored in the local database - Gave details modals a set size - Added a for now useless play button to film details modal
This commit is contained in:
parent
406a423478
commit
629f2ba9d0
5 changed files with 135 additions and 19 deletions
|
|
@ -79,9 +79,10 @@ impl SqliteManager {
|
|||
move |connection| {
|
||||
connection.execute(
|
||||
"
|
||||
update watched_status
|
||||
set watched = :watched
|
||||
where watched_status.media_uuid is :uuid
|
||||
insert into watched_status (media_uuid, watched)
|
||||
values (:uuid, :watched)
|
||||
on conflict (media_uuid) do
|
||||
update set watched = :watched
|
||||
",
|
||||
named_params! { ":uuid": uuid, ":watched": watched },
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue