Bug fixes

Fixed unexpected EOL
Changed default time for displaying graphs to 60 seconds
This commit is contained in:
Andrew Dinh 2019-05-19 20:59:32 -07:00
parent a825116b58
commit 54817460cc

View File

@ -741,7 +741,7 @@ class Stock:
print(' =', marketCap) print(' =', marketCap)
marketCap = marketCap / 1000000 marketCap = marketCap / 1000000
print( print(
'Dividing marketCap by 1 million (to work with linear regression module):', marketCap) 'Dividing marketCap by 1 million:', marketCap)
return marketCap return marketCap
elif Stock.indicator == 'Turnover': elif Stock.indicator == 'Turnover':
@ -1622,6 +1622,8 @@ def plotIndicatorRegression():
Stock.plotIndicatorRegression = False Stock.plotIndicatorRegression = False
# Ask for how long # Ask for how long
Stock.timePlotIndicatorRegression = 60
'''
if Stock.plotIndicatorRegression is True: if Stock.plotIndicatorRegression is True:
timeFound = False timeFound = False
print('') print('')
@ -1635,6 +1637,7 @@ def plotIndicatorRegression():
print('Please choose a number greater than zero') print('Please choose a number greater than zero')
else: else:
print('Please choose an integer') print('Please choose an integer')
'''
def main(): def main():