diff options
Diffstat (limited to 'src/gui/tasks/table/widget.py')
-rw-r--r-- | src/gui/tasks/table/widget.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/tasks/table/widget.py b/src/gui/tasks/table/widget.py index 82c0456..fe8ea2e 100644 --- a/src/gui/tasks/table/widget.py +++ b/src/gui/tasks/table/widget.py @@ -88,7 +88,7 @@ class Widget(QtWidgets.QTableWidget): self._sort_is_ascending = True self._sort_column = column self.sort() - self._header_model.setItem(column, QtGui.QStandardItem('Hey!')) + # self._header_model.setItem(column, QtGui.QStandardItem("Hey!")) self.update_view() def sort(self): @@ -214,13 +214,13 @@ def item(text: str): def age_since(timestamp): diff = int(time.time()) - timestamp if diff >= 60 * 60 * 24: - return '' + str(math.floor(diff / 60 / 60 / 24)) + 'd' + return "" + str(math.floor(diff / 60 / 60 / 24)) + "d" elif diff >= 60 * 60: - return '' + str(math.floor(diff / 60 / 60)) + 'h' + return "" + str(math.floor(diff / 60 / 60)) + "h" elif diff >= 60: - return '' + str(math.floor(diff / 60)) + 'm' + return "" + str(math.floor(diff / 60)) + "m" else: - return '1m' + return "1m" def colored_label(parent, text: str, color: QtGui.QColor): label = QtWidgets.QLabel(text) |