Skip to content

Commit

Permalink
another bug :/
Browse files Browse the repository at this point in the history
  • Loading branch information
mahs4d committed Jul 28, 2020
1 parent 8889ae8 commit f2de77b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/tsetmc_api/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)},
Expand Down

0 comments on commit f2de77b

Please sign in to comment.