Этот коммит содержится в:
Vlad Pronsky 2023-05-29 00:42:42 +03:00
родитель e3e1ee18fe
Коммит 8f9f418a6c
3 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -27,8 +27,10 @@ pylint:
test:
@pytest -s --cov=twscrape tests/
get-cov:
@coverage report -m
show-cov:
@pytest -s --cov=twscrape tests/
@coverage html
@open htmlcov/index.html
act:
@act --container-architecture linux/amd64

Просмотреть файл

@ -12,8 +12,8 @@ from .utils import utc_ts
def guess_delim(line: str):
l, r = [x.strip() for x in line.split("username")]
return r[0] if not l else l[-1]
lp, rp = tuple([x.strip() for x in line.split("username")])
return rp[0] if not lp else lp[-1]
class AccountsPool:

Просмотреть файл

@ -76,7 +76,7 @@ def custom_help(p):
cmd = msg.split("positional arguments:")[1].strip().split("\n")[0]
msg = msg.replace("positional arguments:", "commands:")
msg = [x for x in msg.split("\n") if not cmd in x and not "..." in x]
msg = [x for x in msg.split("\n") if cmd not in x and "..." not in x]
msg[0] = f"{msg[0]} <command> [...]"
i = 0