changed yfinance requirement to 0.1.62

This commit is contained in:
wface 2021-07-11 11:26:05 +02:00
parent 48204c0c55
commit 5a163a65a8
3 changed files with 5 additions and 5 deletions

View File

@ -173,12 +173,12 @@ class Stocks(inkycal_module):
def percentageStr(number):
return '({:+.2f}%)'.format(number)
def gainStr(number):
return '{:+.3f}'.format(number)
def gainStr(precision, number):
return "%+.*f" % (precision, number)
stockNameLine = '{} ({})'.format(stockName, stockCurrency)
stockCurrentValueLine = '{} {} {}'.format(
floatStr(precision, currentQuote), gainStr(currentGain), percentageStr(currentGainPercentage))
floatStr(precision, currentQuote), gainStr(precision, currentGain), percentageStr(currentGainPercentage))
stockDayValueLine = '1d OHL: {}/{}/{}'.format(
floatStr(precision, currentOpen), floatStr(precision, currentHigh), floatStr(precision, currentLow))
maxQuote = max(stockHistory.High)

View File

@ -8,4 +8,4 @@ arrow==0.17.0 # time operations
Flask==1.1.2 # webserver
Flask-WTF==0.14.3 # webforms
todoist-python==8.1.2 # todoist api
yfinance>=0.1.60 # yahoo stocks
yfinance>=0.1.62 # yahoo stocks

View File

@ -23,7 +23,7 @@ __install_requires__ = ['pyowm==3.1.1', # weather
'Flask==1.1.2', # webserver
'Flask-WTF==0.14.3', # webforms
'todoist-python==8.1.2', # todoist api
'yfinance>=0.1.60', # yahoo stocks
'yfinance>=0.1.62', # yahoo stocks
]
__classifiers__ = [