mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
4cdad10897
commit
61bbd64b2f
|
@ -36,7 +36,7 @@ from utils import isAccountDir
|
||||||
from utils import acct_dir
|
from utils import acct_dir
|
||||||
from utils import isfloat
|
from utils import isfloat
|
||||||
from utils import get_category_types
|
from utils import get_category_types
|
||||||
from utils import getSharesFilesList
|
from utils import get_shares_files_list
|
||||||
from utils import local_actor_url
|
from utils import local_actor_url
|
||||||
from media import processMetaData
|
from media import processMetaData
|
||||||
from media import convertImageToLowBandwidth
|
from media import convertImageToLowBandwidth
|
||||||
|
@ -405,7 +405,7 @@ def expireShares(base_dir: str) -> None:
|
||||||
continue
|
continue
|
||||||
nickname = account.split('@')[0]
|
nickname = account.split('@')[0]
|
||||||
domain = account.split('@')[1]
|
domain = account.split('@')[1]
|
||||||
for sharesFileType in getSharesFilesList():
|
for sharesFileType in get_shares_files_list():
|
||||||
_expireSharesForAccount(base_dir, nickname, domain,
|
_expireSharesForAccount(base_dir, nickname, domain,
|
||||||
sharesFileType)
|
sharesFileType)
|
||||||
break
|
break
|
||||||
|
@ -1742,7 +1742,7 @@ def runFederatedSharesDaemon(base_dir: str, httpd, http_prefix: str,
|
||||||
continue
|
continue
|
||||||
|
|
||||||
session = createSession(proxy_type)
|
session = createSession(proxy_type)
|
||||||
for sharesFileType in getSharesFilesList():
|
for sharesFileType in get_shares_files_list():
|
||||||
_updateFederatedSharesCache(session,
|
_updateFederatedSharesCache(session,
|
||||||
shared_items_federated_domains,
|
shared_items_federated_domains,
|
||||||
base_dir, domain_full, http_prefix,
|
base_dir, domain_full, http_prefix,
|
||||||
|
|
2
utils.py
2
utils.py
|
@ -3142,7 +3142,7 @@ def get_category_types(base_dir: str) -> []:
|
||||||
return categories
|
return categories
|
||||||
|
|
||||||
|
|
||||||
def getSharesFilesList() -> []:
|
def get_shares_files_list() -> []:
|
||||||
"""Returns the possible shares files
|
"""Returns the possible shares files
|
||||||
"""
|
"""
|
||||||
return ('shares', 'wanted')
|
return ('shares', 'wanted')
|
||||||
|
|
Loading…
Reference in New Issue