mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Track watch activity for scenes. (#3055)
* track watchtime and view time * add view count sorting, added continue position filter * display metrics in file info * add toggle for tracking activity * save activity every 10 seconds * reset resume when video is nearly complete * start from beginning when playing scene in queue Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -68,14 +68,14 @@ func (r *updateRecord) setNullInt(destField string, v models.OptionalInt) {
|
||||
// }
|
||||
// }
|
||||
|
||||
// func (r *updateRecord) setFloat64(destField string, v models.OptionalFloat64) {
|
||||
// if v.Set {
|
||||
// if v.Null {
|
||||
// panic("null value not allowed in optional float64")
|
||||
// }
|
||||
// r.set(destField, v.Value)
|
||||
// }
|
||||
// }
|
||||
func (r *updateRecord) setFloat64(destField string, v models.OptionalFloat64) {
|
||||
if v.Set {
|
||||
if v.Null {
|
||||
panic("null value not allowed in optional float64")
|
||||
}
|
||||
r.set(destField, v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
// func (r *updateRecord) setNullFloat64(destField string, v models.OptionalFloat64) {
|
||||
// if v.Set {
|
||||
|
||||
Reference in New Issue
Block a user