From def6fca4036d4b10f9655a09ef987542cb52ce55 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sat, 25 Apr 2015 00:28:20 +0200 Subject: [PATCH] Add headers to datecsv output --- datecsv.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datecsv.py b/datecsv.py index 9a0b1da..e5a6727 100755 --- a/datecsv.py +++ b/datecsv.py @@ -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))