Skip to content

Commit ddc4b02

Browse files
committed
Updated requirements.py
1 parent 7937ce0 commit ddc4b02

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

core/clients.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from aiohttp import ClientResponseError, ClientResponse
77
from discord import Member, DMChannel
8-
from pymongo import ReturnDocument
98

109
from core.models import Bot, UserClient
1110

@@ -346,14 +345,14 @@ async def append_log(self, message, channel_id='', type_='thread_message'):
346345
return await self.logs.find_one_and_update(
347346
{'channel_id': channel_id},
348347
{'$push': {f'messages': data}},
349-
return_document=ReturnDocument.AFTER
348+
return_document=True
350349
)
351350

352351
async def post_log(self, channel_id, data):
353352
return await self.logs.find_one_and_update(
354353
{'channel_id': str(channel_id)},
355354
{'$set': {k: v for k, v in data.items()}},
356-
return_document=ReturnDocument.AFTER
355+
return_document=True
357356
)
358357

359358
async def update_repository(self):

requirements.txt

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
git+https://github.com/Rapptz/discord.py@7f4c57dd5ad20b7fa10aea485f674a4bc24b9547
2-
colorama==0.4.1
3-
cachetools==3.0.0
4-
python-dateutil==2.7.5
5-
python-box==3.2.3
6-
colorthief==0.2.1
7-
emoji==0.5.1
8-
dhooks==1.1.0
9-
natural==0.2.0
10-
parsedatetime==2.4
11-
motor==2.0.0
12-
sanic==18.12.0
13-
dnspython==1.16.0
14-
aiohttp==3.4.4
15-
pymongo==3.7.2
16-
uvloop==0.12.0
2+
colorama>=0.4.0
3+
python-dateutil>=2.7.0
4+
emoji>=0.2
5+
uvloop>=0.12.0
6+
motor>=2.0.0
7+
dnspython~=1.16.0 # required by motor
8+
parsedatetime==2.4 # to be replaced by dateparser
9+
aiohttp<3.5 # to comply with discord.py

0 commit comments

Comments
 (0)