Changeset e24e59


Ignore:
Timestamp:
09/03/2014 04:22:39 PM (10 years ago)
Author:
Calum Lind <calumlind+deluge@gmail.com>
Branches:
2.0.x, develop, master
Children:
fc7a13
Parents:
4afd251
git-author:
Calum Lind <calumlind+deluge@gmail.com> (09/03/2014 03:41:09 PM)
git-committer:
Calum Lind <calumlind+deluge@gmail.com> (09/03/2014 04:22:39 PM)
Message:

[Console] Replace set with list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/console/modes/torrentdetail.py

    r4afd251 re24e59  
    245245            if f[3]: # dir, so fill in children and compute our prio
    246246                self.__fill_prio(f[3])
    247                 s = set([e[6] for e in f[3]]) # pull out all child prios and turn into a set
    248                 if len(s) > 1:
     247                child_prios = [e[6] for e in f[3]]
     248                if len(child_prios) > 1:
    249249                    f[6] = -2  # mixed
    250250                else:
    251                     f[6] = s.pop()
     251                    f[6] = child_prios.pop(0)
    252252
    253253    def __update_columns(self):
Note: See TracChangeset for help on using the changeset viewer.