Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenXie committed Dec 31, 2021
1 parent b4378a8 commit 2d500f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typertype/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .main import Typertype
__version__ = "1.1.1"
__version__ = "1.1.2"
2 changes: 1 addition & 1 deletion typertype/src/quotes_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def get_quote():
response = requests.get('https://type.fit/api/quotes')
response.raise_for_status()
if response.status_code == 200:
return quotes[random.randint(0, 1600)]['text']
return response.json()[random.randint(0, 1600)]['text']
return 'Error'

class Typer_quotes(main.Typer_base):
Expand Down

0 comments on commit 2d500f9

Please sign in to comment.