mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Add preferences for default program
This commit is contained in:
parent
653d5cd629
commit
fa94d61e1e
11 changed files with 367 additions and 28 deletions
|
|
@ -629,14 +629,14 @@ impl Library {
|
|||
(
|
||||
UNIXEPOCH('now', 'localtime') - UNIXEPOCH(instruments.last_played_at)
|
||||
) * 1.0 / ")
|
||||
.bind::<sql_types::Integer, _>(program.avoid_repeated_instruments_seconds())
|
||||
.bind::<sql_types::Integer, _>(program.avoid_repeated_instruments())
|
||||
.sql(",
|
||||
1.0
|
||||
),
|
||||
IFNULL(
|
||||
(
|
||||
UNIXEPOCH('now', 'localtime') - UNIXEPOCH(persons.last_played_at)
|
||||
) * 1.0 / ").bind::<sql_types::Integer, _>(program.avoid_repeated_composers_seconds()).sql(",
|
||||
) * 1.0 / ").bind::<sql_types::Integer, _>(program.avoid_repeated_composers()).sql(",
|
||||
1.0
|
||||
),
|
||||
1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue