Skip to content

Commit

Permalink
fix: Requirements.txt and duplicate usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowtter committed Jan 28, 2024
1 parent 8c036df commit 2a6d115
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion crispy-api/api/tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def handle_the_finals(

for username, count in usernames_histogram.items():
if count > 2:
usernames.append(username)
if username not in usernames:
usernames.append(username)

for ch in ("_", " ", ".", "-"):
split_username = username.split(ch)
Expand Down
1 change: 1 addition & 0 deletions crispy-api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ progressbar2==4.0.0
scipy==1.8.0
pydub==0.25.1
montydb==2.4.0
easyocr==1.7.1
2 changes: 0 additions & 2 deletions crispy-api/tests/tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ async def test_handle_highlights_the_finals(tmp_path):
"_raynox",
"heximius",
"raynox",
"raynox",
"sxi",
"sxr",
"sxr",
"sxr_",
]

Expand Down

0 comments on commit 2a6d115

Please sign in to comment.