Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 6351:0db59cc2cd37
Enable testMultilinkOrdering check. Fix back_anydbm to pass.
The testMultilinkOrdering was commented out with a "some day" comment.
Well some day is today. Works on anydbm and sqlite.
CI will tell me if I need to fix mysql and postgres.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 27 Mar 2021 11:57:02 -0400 |
| parents | 6834bb5473da |
| children | d3a5d0d95869 |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Sat Mar 27 11:55:19 2021 -0400 +++ b/roundup/backends/back_anydbm.py Sat Mar 27 11:57:02 2021 -0400 @@ -1162,7 +1162,10 @@ # return a dupe of the list so code doesn't get confused if isinstance(prop, hyperdb.Multilink): - return d[propname][:] + ids = d[propname][:] + print(ids) + ids.sort(key=lambda x: int(x)) + return ids return d[propname]
