Skip to content

Commit

Permalink
Merge pull request #50 from shivam096/cindy-backend
Browse files Browse the repository at this point in the history
update setups
  • Loading branch information
lvxinyi2000 authored Mar 13, 2024
2 parents 18adfd6 + 1a48764 commit 002c8cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dinero/backend/stock_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def download_stock_data(ticker_symbol, period_str='5y'):
"""
if not (isinstance(ticker_symbol, str) and isinstance(period_str, str)):
raise TypeError("Arguments must be strings.")
if not os.path.exists(DEFAULT_DATABASE_PATH):
os.makedirs(DEFAULT_DATABASE_PATH)
period_str = period_str.lower()
ticker_symbol = ticker_symbol.upper()
if not (period_str == 'max' or period_str[-1] in ['d','y']
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ yfinance==0.2.37
zipp==3.17.0
pylint==2.9.6
astroid==2.6.6
build==1.1.1

0 comments on commit 002c8cc

Please sign in to comment.