Snake case

main
Bob Mottram 2021-12-26 17:24:00 +00:00
parent 4cdad10897
commit 61bbd64b2f
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ from utils import isAccountDir
from utils import acct_dir
from utils import isfloat
from utils import get_category_types
from utils import getSharesFilesList
from utils import get_shares_files_list
from utils import local_actor_url
from media import processMetaData
from media import convertImageToLowBandwidth
@ -405,7 +405,7 @@ def expireShares(base_dir: str) -> None:
continue
nickname = account.split('@')[0]
domain = account.split('@')[1]
for sharesFileType in getSharesFilesList():
for sharesFileType in get_shares_files_list():
_expireSharesForAccount(base_dir, nickname, domain,
sharesFileType)
break
@ -1742,7 +1742,7 @@ def runFederatedSharesDaemon(base_dir: str, httpd, http_prefix: str,
continue
session = createSession(proxy_type)
for sharesFileType in getSharesFilesList():
for sharesFileType in get_shares_files_list():
_updateFederatedSharesCache(session,
shared_items_federated_domains,
base_dir, domain_full, http_prefix,

View File

@ -3142,7 +3142,7 @@ def get_category_types(base_dir: str) -> []:
return categories
def getSharesFilesList() -> []:
def get_shares_files_list() -> []:
"""Returns the possible shares files
"""
return ('shares', 'wanted')