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
def__lt__(self, other):
# The download info might not be available yet or there could still be loading QTreeWidgetItemifnotself.download_infoornotisinstance(other, DownloadWidgetItem):
returnTrueelifnotother.download_info:
returnFalsecolumn=self.treeWidget().sortColumn()
ifcolumn==1:
returnfloat(self.download_info["size"]) >float(other.download_info["size"])
elifcolumn==2:
returnint(self.download_info["progress"] *100) >int(other.download_info["progress"] *100)
elifcolumn==4:
returnself.download_info["num_seeds"] >other.download_info["num_seeds"]
elifcolumn==5:
returnself.download_info["num_peers"] >other.download_info["num_peers"]
elifcolumn==6:
returnfloat(self.download_info["speed_down"]) >float(other.download_info["speed_down"])
elifcolumn==7:
returnfloat(self.download_info["speed_up"]) >float(other.download_info["speed_up"])
elifcolumn==8:
returnfloat(self.download_info["ratio"]) >float(other.download_info["ratio"]) # <-- here
The reason for the error is renaming the "ratio" dictionary field to all_time_ratio in #7817. We need to rename it here as well.
The text was updated successfully, but these errors were encountered:
The error appears when right-clicking on the
RATIO
column's header in the downloads pane.Here:
The reason for the error is renaming the
"ratio"
dictionary field toall_time_ratio
in #7817. We need to rename it here as well.The text was updated successfully, but these errors were encountered: