Skip to content

Commit 4ecc56c

Browse files
committed
fix: renamed core/utils.py -> core/helpers.py
1 parent 3bc9734 commit 4ecc56c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

user_scanner/core/helpers.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def get_site_name(module) -> str:
2+
name = module.__name__.split('.')[-1].capitalize().replace("_", ".")
3+
if name == "X":
4+
return "X (Twitter)"
5+
return name
6+
7+
8+
def is_last_value(values, i: int) -> bool:
9+
return i == len(values) - 1

user_scanner/core/orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from user_scanner.cli.printer import Printer
99
from user_scanner.core.result import Result
1010
from typing import Callable, Dict, List
11-
from user_scanner.core.utils import get_site_name, is_last_value
11+
from user_scanner.core.helpers import get_site_name, is_last_value
1212

1313

1414
def load_modules(category_path: Path):

0 commit comments

Comments
 (0)