Changeset 67cefb


Ignore:
Timestamp:
05/24/2016 07:10:52 PM (9 years ago)
Author:
bendikro <bro.devel+deluge@gmail.com>
Branches:
2.0.x, develop, master
Children:
b9f3f5
Parents:
14b576e
git-author:
bendikro <bro.devel+deluge@gmail.com> (01/24/2016 12:31:06 PM)
git-committer:
bendikro <bro.devel+deluge@gmail.com> (05/24/2016 07:10:52 PM)
Message:

[Core] Add finished_time to torrent status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/core/torrent.py

    r14b576e r67cefb  
    980980        self.status_funcs = {
    981981            "active_time": lambda: self.status.active_time,
     982            "seeding_time": lambda: self.status.seeding_time,
     983            "finished_time": lambda: self.status.finished_time,
    982984            "all_time_download": lambda: self.status.all_time_download,
    983985            "storage_mode": lambda: self.status.storage_mode.name.split("_")[2],  # sparse, allocate or compact
     
    10091011            "save_path": lambda: self.options["download_location"],  # Deprecated, use download_location
    10101012            "download_location": lambda: self.options["download_location"],
    1011             "seeding_time": lambda: self.status.seeding_time,
    10121013            "seeds_peers_ratio": lambda: -1.0 if self.status.num_incomplete == 0 else (  # Use -1.0 to signify infinity
    10131014                self.status.num_complete / self.status.num_incomplete),
Note: See TracChangeset for help on using the changeset viewer.