Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract away config access #201

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Abstract away config access #201

wants to merge 1 commit into from

Conversation

olegklimov
Copy link
Contributor

No description provided.

Comment on lines +33 to +34
def rcfg_list_uploads(uploaded_path: str) -> List[str]:
return list(sorted(os.listdir(uploaded_path)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this function is global available?

Comment on lines +21 to +24
def rcfg_load_not_too_old(path: str, seconds: int, default_if_not_found_or_too_old: Optional[Dict[str, Any]]=None) -> Dict[str, Any]:
if rcfg_mtime(path) + seconds < time.time():
return default_if_not_found_or_too_old
return rcfg_load(path, default_if_not_found_or_too_old)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no usages over all PR

@mitya52 mitya52 changed the base branch from v1.2.0 to dev November 17, 2023 15:19
@mitya52 mitya52 changed the base branch from dev to main January 3, 2024 16:13
@mitya52 mitya52 changed the base branch from main to dev January 3, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants