diff options
author | Joris | 2020-05-31 17:47:13 +0200 |
---|---|---|
committer | Joris | 2020-05-31 17:47:14 +0200 |
commit | 74fd6f47b3683bd727a33f3312582485fa062b95 (patch) | |
tree | 87d4a3045e5585dde9e75cf957e755f47de61775 /src/gui/tasks/table/widget.py | |
parent | 1bed85a9b107d1b03e71b848829cb7b1f33060f4 (diff) |
Use double quotes instead of simple quotes
Follow advice from:
https://stackoverflow.com/questions/56011/single-quotes-vs-double-quotes-in-python
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) |