From 96292db3c117919808b608b17bea15b46c91ec3c Mon Sep 17 00:00:00 2001 From: bt0dotninja Date: Mar 11 2020 16:50:16 +0000 Subject: fixing eposh problems --- diff --git a/README.md b/README.md index afde33c..383ce29 100644 --- a/README.md +++ b/README.md @@ -93,4 +93,4 @@ This will create `stats.svg` in your `$pwd`. #### Basic Troubleshooting : -Please take a look at this [blog-post](https://sachinwrites.xyz/2016/05/28/getting-fedstats-gsoc-production-ready/). +#####TODO diff --git a/output.py b/output.py index ac6a7fc..7373cef 100644 --- a/output.py +++ b/output.py @@ -161,10 +161,11 @@ def save_text_metrics(output_json): fout = open(fname, 'a') # Write the dates into CSV if not text_init and stats.end and stats.start: - fout.write( - [['Start Date : ', stats.start], - ['End Date : ', stats.end], - ['']]) + fout.write( "Start Date : {}\n End Date : {}\n".format(stats.start,stats.end)) + #fout.write( + # [['Start Date : ', stats.start], + # ['End Date : ', stats.end], + # ['']]) text_init = True # Initial heading row diff --git a/stats.py b/stats.py index dfa68f8..e24bd8b 100644 --- a/stats.py +++ b/stats.py @@ -26,7 +26,7 @@ unicode_json = {} def return_epoch(time): if time == '': return '' - tup = map(int, time.split('/')) + tup =list( map(int, time.split('/'))) l = (tup[2], tup[0], tup[1], 0, 0, 0) epochs = calendar.timegm(l) return (int(epochs))