Add headers to datecsv output

This commit is contained in:
Klaus-Uwe Mitterer 2015-04-25 00:28:20 +02:00
parent e2ab015218
commit def6fca403

View file

@ -75,4 +75,5 @@ def getTweetsByDate(strings = [], path = tools.config.dbpath, fr = "", to = ""):
if __name__ == "__main__":
strings, fr, to = dateArgs()
tools.printCSV([["Date", "Tweets"] + [s for s in strings]])
tools.printCSV(getTweetsByDate(strings = strings, fr = fr, to = to))