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
I have a Table with a column containing Time objects. I want to sort the rows by that column with Time objects. I get AttributeError: 'Time' object has no attribute 'view' error. Same error using QTable.
I found #8068 but in that issue, the sort wasn't done with the Time column even though the table contains a Time column.
Expected behavior
Table successfully sorted in-place by ascending Time order.
Actual behavior
Unsuccessful operation with AttributeError: 'Time' object has no attribute 'view' error.
Activity
pllim commentedon Oct 9, 2020
Workaround is to do
Time(...).strftime('%Y-%m-%d')and then sort the string.mhvk commentedon Oct 9, 2020
Hmm, this looks like a regression - this worked in 4.0! It is strange since
Timedoes have anargsortmethod.mhvk commentedon Oct 9, 2020
So another work-around is
mhvk commentedon Oct 9, 2020
The fix turns out to be fairly easy - PR forthcoming...
mhvk commentedon Oct 9, 2020
See #10824
pllim commentedon Oct 17, 2020
Thanks, all!