1
0
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:
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

@ -1,2 +1,2 @@
__version__ = '0.3.3'
__version__ = '0.3.4'
__release__ = __version__

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]