aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/insert_tranche_quotes.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/insert_tranche_quotes.py b/python/insert_tranche_quotes.py
index 352d9825..b9de0993 100644
--- a/python/insert_tranche_quotes.py
+++ b/python/insert_tranche_quotes.py
@@ -31,8 +31,7 @@ def insert_quotes(year=2015, quote_dir=None):
data = []
for csvdict in reader:
try:
- timestamp = datetime.datetime.strptime(csvdict['Date'], "%d %b %H:%M")
- timestamp = timestamp.replace(year=int(year))
+ timestamp = datetime.datetime.strptime(csvdict['Date'], "%d %b %Y %H:%M")
except ValueError:
logging.error("%s: Date in the wrong format", csvdict['Date'])
return