mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
79dabfa8fc
commit
3a9b6095ac
2
utils.py
2
utils.py
|
@ -255,7 +255,7 @@ def get_full_domain(domain: str, port: int) -> str:
|
|||
return domain + ':' + str(port)
|
||||
|
||||
|
||||
def isDormant(base_dir: str, nickname: str, domain: str, actor: str,
|
||||
def is_dormant(base_dir: str, nickname: str, domain: str, actor: str,
|
||||
dormant_months: int) -> bool:
|
||||
"""Is the given followed actor dormant, from the standpoint
|
||||
of the given account
|
||||
|
|
|
@ -14,7 +14,7 @@ from person import isPersonSnoozed
|
|||
from posts import isModerator
|
||||
from utils import get_full_domain
|
||||
from utils import getConfigParam
|
||||
from utils import isDormant
|
||||
from utils import is_dormant
|
||||
from utils import removeHtml
|
||||
from utils import getDomainFromActor
|
||||
from utils import getNicknameFromActor
|
||||
|
@ -93,7 +93,7 @@ def htmlPersonOptions(defaultTimeline: str,
|
|||
if isGroup:
|
||||
followStr = 'Leave'
|
||||
dormant = \
|
||||
isDormant(base_dir, nickname, domain, optionsActor,
|
||||
is_dormant(base_dir, nickname, domain, optionsActor,
|
||||
dormant_months)
|
||||
|
||||
optionsNickname = getNicknameFromActor(optionsActor)
|
||||
|
|
|
@ -17,7 +17,7 @@ from utils import getOccupationName
|
|||
from utils import get_locked_account
|
||||
from utils import get_full_domain
|
||||
from utils import isArtist
|
||||
from utils import isDormant
|
||||
from utils import is_dormant
|
||||
from utils import getNicknameFromActor
|
||||
from utils import getDomainFromActor
|
||||
from utils import isSystemAccount
|
||||
|
@ -1129,7 +1129,7 @@ def _htmlProfileFollowing(translate: {}, base_dir: str, http_prefix: str,
|
|||
dormant = False
|
||||
if authorized and feedName == 'following':
|
||||
dormant = \
|
||||
isDormant(base_dir, nickname, domain, followingActor,
|
||||
is_dormant(base_dir, nickname, domain, followingActor,
|
||||
dormant_months)
|
||||
|
||||
profileStr += \
|
||||
|
|
Loading…
Reference in New Issue