mirror of
https://github.com/bspeice/metrik
synced 2025-07-03 06:45:07 -04:00
Make sure records are actually saveable
MongoDB doesn't like the pure `date` type.
This commit is contained in:
@ -1,2 +1,2 @@
|
||||
__version__ = '0.3.3'
|
||||
__version__ = '0.3.4'
|
||||
__release__ = __version__
|
@ -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