You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a smart block with a "last played" criteria I see that new tracks without a “last played” value don´t show as “matched” in the block's preview no matter what modifier I set for the "Last Played".
I've opened a thread in discourse.
I enclose some screenshots. Here I have 3 tracks matching a condition. 1 of them has just been uploaded and never played. When I add a “last played” time condition the new track doesnt show up! for either “before” or “after” modifier.
Describe the solution you'd like
Kevw shared a workaround for setting a default datetime for new tracks:
Change to the field in the database so that the default datetime is in the past. Like this:
psql -h localhost -U airtime -W
ALTER TABLE cc_files ALTER COLUMN lptime SET DEFAULT ‘1999-01-01 00:00:00’;
So newly uploaded tracks have a last-played time of ‘1999-01-01 00:00:00’.
The smartblocks then work properly.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
#2840)
### Description
Closes#2798
COALESCE last played null values with date -infinity, to ensure newly
added files are found by the last played smart block criteria.
Is your feature request related to a problem?
When using a smart block with a "last played" criteria I see that new tracks without a “last played” value don´t show as “matched” in the block's preview no matter what modifier I set for the "Last Played".
I've opened a thread in discourse.
I enclose some screenshots. Here I have 3 tracks matching a condition. 1 of them has just been uploaded and never played. When I add a “last played” time condition the new track doesnt show up! for either “before” or “after” modifier.
Describe the solution you'd like
Kevw shared a workaround for setting a default datetime for new tracks:
Change to the field in the database so that the default datetime is in the past. Like this:
psql -h localhost -U airtime -W
ALTER TABLE cc_files ALTER COLUMN lptime SET DEFAULT ‘1999-01-01 00:00:00’;
So newly uploaded tracks have a last-played time of ‘1999-01-01 00:00:00’.
The smartblocks then work properly.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: