npri-tools / npri-vm

Configurations for the web server hosting our copy of NPRI and Stat Can data
GNU General Public License v3.0
0 stars 0 forks source link

Update API to allow selecting Places based on FSA #2

Closed ericnost closed 1 week ago

ericnost commented 1 week ago
ericnost commented 1 week ago

use place keyword since it already exists for Facilities

"place" : '"ForwardSortationArea" in ({})'.format(','.join('\''+fsa+'\'' for fsa in keys["place"].split(",")))

should become

"place" : '"ForwardSortationArea" like any (array[{}])'.format(','.join('\''+fsa+'\'' for fsa in keys["place"].split(","))),