Skip to content

Commit

Permalink
Update shroom.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jus-Codin committed Mar 13, 2023
1 parent 3483537 commit 90ce3ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def to_dict(self, include_id=True, include_time=True) -> FarmDict:


class ShroomFarm:
def __init__(self):
self._db_client = motor_asyncio.AsyncIOMotorClient()
def __init__(self, url: str = "localhost"):
self.db_url = url
self._db_client = motor_asyncio.AsyncIOMotorClient(url)
self.shroom_db: motor_asyncio.AsyncIOMotorDatabase = self._db_client["ShroomDB"]

self.farm_db: motor_asyncio.AsyncIOMotorCollection = self.shroom_db["Farm"]
Expand Down

0 comments on commit 90ce3ee

Please sign in to comment.