Commit 4e0bc07
committed
Handle partial price data better
If today or tomorrow has only partial price data, don't return any averages
or highest/lowest price, because it's not possible to return something that
makes sense if we don't have prices for the whole day.1 parent 24c33cb commit 4e0bc07
4 files changed
Lines changed: 742 additions & 3 deletions
File tree
- spothinta_api
- tests
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
260 | | - | |
| 261 | + | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
266 | 274 | | |
267 | 275 | | |
268 | 276 | | |
| |||
272 | 280 | | |
273 | 281 | | |
274 | 282 | | |
275 | | - | |
| 283 | + | |
276 | 284 | | |
277 | 285 | | |
278 | 286 | | |
279 | 287 | | |
280 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
281 | 296 | | |
282 | 297 | | |
283 | 298 | | |
| |||
329 | 344 | | |
330 | 345 | | |
331 | 346 | | |
| 347 | + | |
332 | 348 | | |
333 | 349 | | |
334 | 350 | | |
335 | 351 | | |
336 | 352 | | |
337 | 353 | | |
338 | 354 | | |
| 355 | + | |
339 | 356 | | |
340 | 357 | | |
341 | 358 | | |
| |||
350 | 367 | | |
351 | 368 | | |
352 | 369 | | |
| 370 | + | |
353 | 371 | | |
354 | 372 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments