Fixing README formatting.

This commit is contained in:
Nanda Scott 2018-02-21 19:29:32 -05:00
parent 247bc3463c
commit 76b4d00ba8
1 changed files with 2 additions and 0 deletions

View File

@ -47,9 +47,11 @@ There will be no attempts to keep backwards compatibility for the duration of th
There is no default rate limiting for this library. Not all projects are created equal, so not all of them will need a universal limit. It's up to the responsibility of the user to make sure they don't overload Scryfall's servers. There is no default rate limiting for this library. Not all projects are created equal, so not all of them will need a universal limit. It's up to the responsibility of the user to make sure they don't overload Scryfall's servers.
The simplest way to prevent sending too many requests too quickly is the following: The simplest way to prevent sending too many requests too quickly is the following:
>>> time.sleep(0.1) >>> time.sleep(0.1)
>>> card = scrython.cards.Random() >>> card = scrython.cards.Random()
Or in asyncronous applications: Or in asyncronous applications:
>>> await asyncio.sleep(0.1) >>> await asyncio.sleep(0.1)
>>> card = scrython.cards.Random() >>> card = scrython.cards.Random()