From f2de77b07c5c07a03da1bcc733faecd495c82947 Mon Sep 17 00:00:00 2001 From: Mahdi Sadeghi Date: Tue, 28 Jul 2020 19:55:20 +0430 Subject: [PATCH] another bug :/ --- lib/tsetmc_api/pack.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tsetmc_api/pack.py b/lib/tsetmc_api/pack.py index 42a5eed..29ce495 100644 --- a/lib/tsetmc_api/pack.py +++ b/lib/tsetmc_api/pack.py @@ -110,8 +110,8 @@ def load_datapack(pack_address): snapshots_30m = pickle.loads(zp.read('snapshots_30m.pickle')) snapshots_1h = pickle.loads(zp.read('snapshots_1h.pickle')) - from_date = datetime.strptime(info['from_date'], '%d-%m-%y').date() - to_date = datetime.strptime(info['to_date'], '%d-%m-%y').date() + from_date = datetime.strptime(info['from_date'], '%Y-%m-%d').date() + to_date = datetime.strptime(info['to_date'], '%Y-%m-%d').date() return DataPack(Asset(info['asset_id'], info['short_name'], info['full_name']), from_date, to_date, snapshots_1m, snapshots_5m, snapshots_10m, snapshots_30m, snapshots_1h) diff --git a/setup.py b/setup.py index 64a391e..7463055 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def get_directory_files(dir): setup( name='tsetmc-api', - version='1.3.2', + version='1.3.3', package_dir={'': 'lib'}, packages=['tsetmc_api'], package_data={'tsetmc_api': get_directory_files(data_dir_path)},