1
0
mirror of https://github.com/bspeice/metrik synced 2025-08-03 06:04:47 -04:00

Make sure records are actually saveable

MongoDB doesn't like the pure `date` type.
This commit is contained in:
Bradlee Speice
2016-08-25 17:08:37 -04:00
parent 0733725728
commit 117f4d60b2
3 changed files with 23 additions and 3 deletions

View File

@ -65,7 +65,7 @@ class Tradeking1mTimesales(MongoCreateTask):
'incr_vl': int(quote['incr_vl']),
'hi': float(quote['hi']),
'timestamp': parse(quote['timestamp']),
'date': parse(quote['date']).date(),
'date': parse(quote['date']),
'opn': float(quote['opn'])
}
quotes_typed = [format_quote(q) for q in quotes]