Skip to content

Commit 6cb9ba1

Browse files
authored
Merge pull request #9 from veghdev/viewsclones
Fixed: not available stats, write stats for the previous day
2 parents 3c82c9e + 317592e commit 6cb9ba1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "write-githubstat"
77
packages = [
88
{ include = "writegithubstat", from = "src" },
99
]
10-
version = "0.1.1"
10+
version = "0.1.2"
1111
readme = "README.md"
1212
description = "write-githubstat makes it easy to collect, filter and save github statistics to csv files."
1313
license = "Apache 2.0"

Diff for: src/writegithubstat/githubstat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from pathlib import Path
44
import logging
5-
from datetime import date
5+
from datetime import date, timedelta
66
from typing import Dict, Any, List, Union
77

88
import requests
@@ -186,7 +186,7 @@ def get_stat(
186186

187187
class WriteGithubStat:
188188
def __init__(self, auth: GithubAuth) -> None:
189-
self._date = date.today().strftime("%Y-%m-%d")
189+
self._date = (date.today() - timedelta(days=1)).strftime("%Y-%m-%d")
190190
self._auth = auth
191191

192192
@property

0 commit comments

Comments
 (0)