Skip to content

Commit

Permalink
disable this testing fybc
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Apr 23, 2024
1 parent 5aa6c04 commit e323c9f
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 @@ -235,8 +235,8 @@ async def insert_report(
"""
Inserts detections into to the plugin database.
"""
if random.randint(1, 10) == 1:
asyncio.create_task(insert_report_v2(detections))
# if random.randint(1, 10) == 1:
# asyncio.create_task(insert_report_v2(detections))
# remove duplicates
df = pd.DataFrame([d.dict() for d in detections])
df.drop_duplicates(subset=["reporter", "reported", "region_id"], inplace=True)
Expand Down

0 comments on commit e323c9f

Please sign in to comment.