Skip to content

Commit

Permalink
Merge pull request #522 from Bot-detector/develop
Browse files Browse the repository at this point in the history
2024-04-24
  • Loading branch information
extreme4all authored Apr 23, 2024
2 parents 5e9db2e + 5aa6c04 commit d9fccfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/v1/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ async def insert_active_reporter(reporter: str):
async def insert_report_v2(detections: list[detection]):
try:
url = 'https://api.prd.osrsbotdetector.com/v2/report'
data = [d.model_dump() for d in detections]
data = [d.dict() for d in detections]
async with aiohttp.ClientSession() as session:
async with session.post(url=url,data=data) as response:
async with session.post(url=url, json=data) as response:
if not response.ok:
logger.error(await response.text())
except Exception as e:
Expand Down

0 comments on commit d9fccfb

Please sign in to comment.