File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name = "write-githubstat"
7
7
packages = [
8
8
{ include = " writegithubstat" , from = " src" },
9
9
]
10
- version = " 0.1.4 "
10
+ version = " 0.1.5 "
11
11
readme = " README.md"
12
12
description = " write-githubstat makes it easy to collect, filter and save github statistics to csv files."
13
13
license = " Apache 2.0"
Original file line number Diff line number Diff line change @@ -197,11 +197,18 @@ def date(self) -> str:
197
197
def write_stat (self , stat_type : GithubStatType , csv : Path ) -> None :
198
198
os .makedirs (csv .parent , exist_ok = True )
199
199
stats = self ._get_stats (stat_type )
200
- logging . info (stats )
200
+ WriteGithubStat . _log_df (stats )
201
201
stored_stats = self ._get_stored_stats (csv )
202
202
merged_stats = self ._merge_stats (stored_stats , stats )
203
203
merged_stats .to_csv (csv , index = False )
204
204
205
+ @staticmethod
206
+ def _log_df (df ) -> None :
207
+ with pd .option_context ('display.max_columns' , None ,
208
+ 'display.max_rows' , None ,
209
+ 'display.width' , None ):
210
+ logging .info (df )
211
+
205
212
def _get_stats (self , stat_type : GithubStatType ) -> pd .DataFrame :
206
213
stat = GithubStatAPI .get_stat (stat_type , self ._auth .header )
207
214
if stat .empty :
You can’t perform that action at this time.
0 commit comments