fixing eposh problems
This commit is contained in:
parent
34000f3e37
commit
96292db3c1
3 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
stats.py
2
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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue