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:
@ -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]
|
||||
|
Reference in New Issue
Block a user