Commit Graph

12 Commits

Author SHA1 Message Date
David Todd faaa8eb322
Create README.md 2018-03-10 23:51:33 -06:00
David Todd 6a8376d530
Refactor setDateRange
This function wasn't working with different arguments such as days and start
It would always return x days off of today instead of the date to start at
It now always returns x days off of the date supplied to start or today if start is invalid
This also works for stop (they use the same checkDate function)
2016-03-29 09:59:10 -05:00
David Todd 73d6455604
Add Stop time to setDateRange, Tweak the CSV file
setDateRange will now take a ending date (in ISO 8601 format)
Minor logic fixing to various functions to facillitate the change
The CSV tweaks are to format the CSV file correctly with the info we need
2016-03-28 14:07:01 -05:00
David Todd a01ffceb86
Finish checkRevisedItems, apply dict directly to api call, add error checking to switchDateRange
checkRevisedItems will return a list called itemIDs inside the apiResponse - This list is all the items that need getItems again
instead of needlessly pulling the response from the api into a variable and applying a dict there, apply directly to the api call
switchDateRange will now output a dict containing a range ending today if no arguments are given
2016-03-25 15:28:08 -05:00
David Todd b9d65b7d64
Whoops - Fix switchDateRange arguments, Add =None to all (primary) function arguments
I had the arguments for switchDateRange reversed, dateRange should be the second argument
Now our error checking ifs at the beginning of the main functions will detect if they're None and the Interperter shouldn't trackback when neglecting to add arguments
2016-03-25 14:14:35 -05:00
David Todd 5bd3f0b85b
Add CSV support, start work on checkRevisedItems, Add switchDateRange
The CSV support is going to be for exporting the itemData from our database to use with external services that can import CSV files
checkRevisedItems will check a dateRange and return a list containing the ItemIDs that need to be fetched again wigh getItems because they were revised in some way
switchDateRange - More abstractions to other functions - This is because we use that specific switch statement multiple times now
2016-03-25 14:05:04 -05:00
David Todd 35e45e5e1a
Convert tabs to spaces 2016-03-24 14:40:29 -05:00
David Todd 02be8b52bd
Add start check in setDateRange, begin Parallel experiments
Give the setDateRange function the ability to chose an arbitrary date to start at, defaulting to today
Parallel will help us dump and update a lot of information at once in the future
2016-03-24 14:17:31 -05:00
David Todd 0394f2c2b8
Add range selection ability
The original implementation could only search for items that end in a specific date range
This makes it so that we can select between a start range, modified range, or the default end range

The override could probably use some work as there is currently nothing checking sellerList for any other types and there can only be one
2016-03-23 13:45:28 -05:00
David Todd 5045f1efd1 | 2016-03-23 13:42:01 -05:00
David Todd 2f2935d06d
Add range selection ability
The original implementation could only search for items that end in a specific date range
This makes it so that we can select between a start range, modified range, or the default end range

The override could probably use some work as there is currently nothing checking sellerList for any other types and there can only be one
2016-03-23 13:06:15 -05:00
David Todd 28d1c9e9a2
Initial Commit 2016-03-22 16:43:40 -05:00