dali-lab / pine-beetle-automation

Server for automating the pipeline between ArcGIS and MongoDB.
https://spbpredict.com
1 stars 0 forks source link

improve csv sort indices for unsummarized download #181

Open jeffzyliu opened 1 year ago

jeffzyliu commented 1 year ago

Description

Unsummarized download orders by globalID instead of year etc.. because we sort on Model.schema.indexes()[0][0]:

image

need to search for Model.schema.indexes()[one with 'year'][0] instead.

EDIT we already have this! getModelIndexes in utils. but it needs unique on the index, so it doesn't work unless we get like a weekNumber on it? but that doesn't make much sense. never mind.

Type of Issue