mirror of
https://github.com/rumanzo/bt2qbt.git
synced 2024-11-26 04:12:30 +01:00
Bug fix for unfinished
This commit is contained in:
parent
68c683094e
commit
daaacffde6
@ -185,6 +185,7 @@ func logic(key string, value map[string]interface{}, bitdir *string, with_label
|
|||||||
newstructure["finished_time"] = int(time.Since(time.Unix(value["completed_on"].(int64), 0)).Minutes())
|
newstructure["finished_time"] = int(time.Since(time.Unix(value["completed_on"].(int64), 0)).Minutes())
|
||||||
if value["completed_on"] != 0 {
|
if value["completed_on"] != 0 {
|
||||||
newstructure["last_seen_complete"] = int(time.Now().Unix())
|
newstructure["last_seen_complete"] = int(time.Now().Unix())
|
||||||
|
} else {
|
||||||
newstructure["unfinished"] = new([]interface{})
|
newstructure["unfinished"] = new([]interface{})
|
||||||
}
|
}
|
||||||
newstructure["total_downloaded"] = value["downloaded"]
|
newstructure["total_downloaded"] = value["downloaded"]
|
||||||
|
Loading…
Reference in New Issue
Block a user