Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Some beautify readme 📖. Fix: pool try to get running event loop even …
Browse files Browse the repository at this point in the history
…if there was no need to.
  • Loading branch information
somespecialone committed Feb 3, 2022
1 parent 4c81c1c commit 06dbdc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Python-steam-tradeoffer-manager
# <p align="center">Python steam tradeoffer manager</p>

[![license](https://img.shields.io/github/license/somespecialone/python-steam-tradeoffer-manager)](https://github.com/somespecialone/python-steam-tradeoffer-manager/blob/master/LICENSE)
[![pypi](https://img.shields.io/pypi/v/steam-tradeoffer-manager)](https://pypi.org/project/steam-tradeoffer-manager)
Expand All @@ -23,7 +23,7 @@ $ pipenv install steam-tradeoffer-manager
$ poetry add steam-tradeoffer-manager
```

If you want to have the latest updates not included in release and published:
If you want to have the latest updates not included in release and published on PyPI:
```sh
$ pip install git+https://github.com/somespecialone/python-steam-tradeoffer-manager.git@master

Expand Down
2 changes: 1 addition & 1 deletion steam_tradeoffer_manager/base/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def loop(self) -> asyncio.AbstractEventLoop:
# setter for steam.Client.__init__
@loop.setter
def loop(self, _):
self._loop = asyncio.get_event_loop()
self._loop = asyncio.get_event_loop_policy().get_event_loop()

@property
def state(self) -> BotState:
Expand Down
2 changes: 1 addition & 1 deletion steam_tradeoffer_manager/base/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SteamBotPool(Generic[_I, _B], AbstractBasePool):
domain: str = "steam.py" # domain to register new api key

def __init__(self):
self.loop = asyncio.get_running_loop()
self.loop = asyncio.get_event_loop_policy().get_event_loop()
self._store: dict[_I, _B] = {}

def startup(self):
Expand Down

0 comments on commit 06dbdc2

Please sign in to comment.