Add headers to datecsv output
This commit is contained in:
parent
e2ab015218
commit
def6fca403
|
@ -75,4 +75,5 @@ def getTweetsByDate(strings = [], path = tools.config.dbpath, fr = "", to = ""):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
strings, fr, to = dateArgs()
|
strings, fr, to = dateArgs()
|
||||||
|
tools.printCSV([["Date", "Tweets"] + [s for s in strings]])
|
||||||
tools.printCSV(getTweetsByDate(strings = strings, fr = fr, to = to))
|
tools.printCSV(getTweetsByDate(strings = strings, fr = fr, to = to))
|
||||||
|
|
Loading…
Reference in a new issue