danieldickison/appdailysales — pull request #1 by EeKay (2013-01-09 08:29:36+00:00)
Title: Added weekly report downloading via -w parameter and replaced -d by -n parameter

Hello Daniel,

I expanded the python script with a -w (-weekly) parameter so Weekly Reports can be downloaded as well (daily will be default).

Since the -days parameter is not entirely correct anymore i renamed it to -n (-number), since it can be the number of days or weeks.

if weekly is enabled by the user and the number is filled it will calculate the number of days since the last sunday and adds the dates for each sunday therefore until the desired number of dates is reached.

Hope you find this useful and pull this puppy in!

Greets,

Eekay