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

Increases time delta by one to get the previous day stat #172

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

gurkanindibay
Copy link
Contributor

No description provided.

hanefi and others added 2 commits August 23, 2021 13:25
See https://json.schemastore.org/github-workflow.json for the complete
set of definitions.

This commit fixes all the issues that are found on the default branch
yaml files
@@ -56,7 +56,7 @@ def fetch_and_store_docker_statistics(repository_name: str, db_parameters: DbPar
if i > 0 else (pull_diff - mod_pull_diff) / day_diff + mod_pull_diff)
stat_param = DockerStats(fetch_date=fetch_date, total_pull_count=total_pull_count,
daily_pull_count=daily_pull_count,
stat_date=fetch_date.date() - timedelta(days=i))
stat_date=fetch_date.date() - timedelta(days=i+1))
Copy link
Member

@onurctirtir onurctirtir Sep 1, 2021

Choose a reason for hiding this comment

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

or maybe just do for i in range(1, day_diff+1):

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.

3 participants