kopia lustrzana https://github.com/simonw/datasette
Sort keys to past tests in Python 3.5
rodzic
5ef3b2d6c9
commit
182a3017c2
|
@ -638,6 +638,7 @@ class ManyToManyFacet(Facet):
|
|||
"value": str(row["value"]),
|
||||
},
|
||||
separators=(",", ":"),
|
||||
sort_keys=True,
|
||||
)
|
||||
selected = ("_through", through) in args
|
||||
if selected:
|
||||
|
|
|
@ -344,14 +344,14 @@ async def test_m2m_facet_results(app_client):
|
|||
"value": 2,
|
||||
"label": "Paranormal",
|
||||
"count": 3,
|
||||
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22table%22%3A%22roadside_attraction_characteristics%22%2C%22column%22%3A%22characteristic_id%22%2C%22value%22%3A%222%22%7D",
|
||||
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22column%22%3A%22characteristic_id%22%2C%22table%22%3A%22roadside_attraction_characteristics%22%2C%22value%22%3A%222%22%7D",
|
||||
"selected": False,
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"label": "Museum",
|
||||
"count": 2,
|
||||
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22table%22%3A%22roadside_attraction_characteristics%22%2C%22column%22%3A%22characteristic_id%22%2C%22value%22%3A%221%22%7D",
|
||||
"toggle_url": "http://localhost/?_facet_m2m=attraction_characteristic&_through=%7B%22column%22%3A%22characteristic_id%22%2C%22table%22%3A%22roadside_attraction_characteristics%22%2C%22value%22%3A%221%22%7D",
|
||||
"selected": False,
|
||||
},
|
||||
],
|
||||
|
|
Ładowanie…
Reference in New Issue