mirror of https://gitlab.com/bashrc2/epicyon
Remove default arguments
parent
3b4832e1c8
commit
b33f479a7b
14
posts.py
14
posts.py
|
@ -4232,7 +4232,7 @@ def create_bookmarks_timeline(base_dir: str,
|
||||||
return _create_box_indexed({}, base_dir, 'tlbookmarks',
|
return _create_box_indexed({}, base_dir, 'tlbookmarks',
|
||||||
nickname, domain,
|
nickname, domain,
|
||||||
port, http_prefix, items_per_page, header_only,
|
port, http_prefix, items_per_page, header_only,
|
||||||
True, 0, False, 0, page_number)
|
True, 0, False, 0, page_number, '')
|
||||||
|
|
||||||
|
|
||||||
def create_dm_timeline(recent_posts_cache: {},
|
def create_dm_timeline(recent_posts_cache: {},
|
||||||
|
@ -4265,7 +4265,7 @@ def create_blogs_timeline(base_dir: str, nickname: str, domain: str,
|
||||||
return _create_box_indexed({}, base_dir, 'tlblogs', nickname,
|
return _create_box_indexed({}, base_dir, 'tlblogs', nickname,
|
||||||
domain, port, http_prefix,
|
domain, port, http_prefix,
|
||||||
items_per_page, header_only, True,
|
items_per_page, header_only, True,
|
||||||
0, False, 0, page_number)
|
0, False, 0, page_number, '')
|
||||||
|
|
||||||
|
|
||||||
def create_features_timeline(base_dir: str,
|
def create_features_timeline(base_dir: str,
|
||||||
|
@ -4275,7 +4275,7 @@ def create_features_timeline(base_dir: str,
|
||||||
return _create_box_indexed({}, base_dir, 'tlfeatures', nickname,
|
return _create_box_indexed({}, base_dir, 'tlfeatures', nickname,
|
||||||
domain, port, http_prefix,
|
domain, port, http_prefix,
|
||||||
items_per_page, header_only, True,
|
items_per_page, header_only, True,
|
||||||
0, False, 0, page_number)
|
0, False, 0, page_number, '')
|
||||||
|
|
||||||
|
|
||||||
def create_media_timeline(base_dir: str, nickname: str, domain: str,
|
def create_media_timeline(base_dir: str, nickname: str, domain: str,
|
||||||
|
@ -4284,7 +4284,7 @@ def create_media_timeline(base_dir: str, nickname: str, domain: str,
|
||||||
return _create_box_indexed({}, base_dir, 'tlmedia', nickname,
|
return _create_box_indexed({}, base_dir, 'tlmedia', nickname,
|
||||||
domain, port, http_prefix,
|
domain, port, http_prefix,
|
||||||
items_per_page, header_only, True,
|
items_per_page, header_only, True,
|
||||||
0, False, 0, page_number)
|
0, False, 0, page_number, '')
|
||||||
|
|
||||||
|
|
||||||
def create_news_timeline(base_dir: str, domain: str,
|
def create_news_timeline(base_dir: str, domain: str,
|
||||||
|
@ -4296,7 +4296,7 @@ def create_news_timeline(base_dir: str, domain: str,
|
||||||
domain, port, http_prefix,
|
domain, port, http_prefix,
|
||||||
items_per_page, header_only, True,
|
items_per_page, header_only, True,
|
||||||
newswire_votes_threshold, positive_voting,
|
newswire_votes_threshold, positive_voting,
|
||||||
voting_time_mins, page_number)
|
voting_time_mins, page_number, '')
|
||||||
|
|
||||||
|
|
||||||
def create_outbox(base_dir: str, nickname: str, domain: str,
|
def create_outbox(base_dir: str, nickname: str, domain: str,
|
||||||
|
@ -4306,7 +4306,7 @@ def create_outbox(base_dir: str, nickname: str, domain: str,
|
||||||
return _create_box_indexed({}, base_dir, 'outbox',
|
return _create_box_indexed({}, base_dir, 'outbox',
|
||||||
nickname, domain, port, http_prefix,
|
nickname, domain, port, http_prefix,
|
||||||
items_per_page, header_only, authorized,
|
items_per_page, header_only, authorized,
|
||||||
0, False, 0, page_number)
|
0, False, 0, page_number, '')
|
||||||
|
|
||||||
|
|
||||||
def create_moderation(base_dir: str, nickname: str, domain: str, port: int,
|
def create_moderation(base_dir: str, nickname: str, domain: str, port: int,
|
||||||
|
@ -4735,7 +4735,7 @@ def _create_box_indexed(recent_posts_cache: {},
|
||||||
authorized: bool,
|
authorized: bool,
|
||||||
newswire_votes_threshold: int, positive_voting: bool,
|
newswire_votes_threshold: int, positive_voting: bool,
|
||||||
voting_time_mins: int, page_number: int,
|
voting_time_mins: int, page_number: int,
|
||||||
first_post_id: str = '') -> {}:
|
first_post_id: str) -> {}:
|
||||||
"""Constructs the box feed for a person with the given nickname
|
"""Constructs the box feed for a person with the given nickname
|
||||||
"""
|
"""
|
||||||
if not authorized or not page_number:
|
if not authorized or not page_number:
|
||||||
|
|
|
@ -23,7 +23,7 @@ from utils import load_json
|
||||||
|
|
||||||
|
|
||||||
def get_moved_accounts(base_dir: str, nickname: str, domain: str,
|
def get_moved_accounts(base_dir: str, nickname: str, domain: str,
|
||||||
filename: str = 'following.txt') -> {}:
|
filename: str) -> {}:
|
||||||
"""returns a dict of moved accounts
|
"""returns a dict of moved accounts
|
||||||
"""
|
"""
|
||||||
moved_accounts_filename = base_dir + '/accounts/actors_moved.txt'
|
moved_accounts_filename = base_dir + '/accounts/actors_moved.txt'
|
||||||
|
|
Loading…
Reference in New Issue