Snake case

merge-requests/30/head
Bob Mottram 2021-12-26 12:54:51 +00:00
parent 79dabfa8fc
commit 3a9b6095ac
3 changed files with 8 additions and 8 deletions

View File

@ -255,8 +255,8 @@ def get_full_domain(domain: str, port: int) -> str:
return domain + ':' + str(port) 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: dormant_months: int) -> bool:
"""Is the given followed actor dormant, from the standpoint """Is the given followed actor dormant, from the standpoint
of the given account of the given account
""" """

View File

@ -14,7 +14,7 @@ from person import isPersonSnoozed
from posts import isModerator from posts import isModerator
from utils import get_full_domain from utils import get_full_domain
from utils import getConfigParam from utils import getConfigParam
from utils import isDormant from utils import is_dormant
from utils import removeHtml from utils import removeHtml
from utils import getDomainFromActor from utils import getDomainFromActor
from utils import getNicknameFromActor from utils import getNicknameFromActor
@ -93,8 +93,8 @@ def htmlPersonOptions(defaultTimeline: str,
if isGroup: if isGroup:
followStr = 'Leave' followStr = 'Leave'
dormant = \ dormant = \
isDormant(base_dir, nickname, domain, optionsActor, is_dormant(base_dir, nickname, domain, optionsActor,
dormant_months) dormant_months)
optionsNickname = getNicknameFromActor(optionsActor) optionsNickname = getNicknameFromActor(optionsActor)
optionsDomainFull = get_full_domain(optionsDomain, optionsPort) optionsDomainFull = get_full_domain(optionsDomain, optionsPort)

View File

@ -17,7 +17,7 @@ from utils import getOccupationName
from utils import get_locked_account from utils import get_locked_account
from utils import get_full_domain from utils import get_full_domain
from utils import isArtist from utils import isArtist
from utils import isDormant from utils import is_dormant
from utils import getNicknameFromActor from utils import getNicknameFromActor
from utils import getDomainFromActor from utils import getDomainFromActor
from utils import isSystemAccount from utils import isSystemAccount
@ -1129,8 +1129,8 @@ def _htmlProfileFollowing(translate: {}, base_dir: str, http_prefix: str,
dormant = False dormant = False
if authorized and feedName == 'following': if authorized and feedName == 'following':
dormant = \ dormant = \
isDormant(base_dir, nickname, domain, followingActor, is_dormant(base_dir, nickname, domain, followingActor,
dormant_months) dormant_months)
profileStr += \ profileStr += \
_individualFollowAsHtml(signing_priv_key_pem, _individualFollowAsHtml(signing_priv_key_pem,