You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I make a suggestion to add a timestamp to the output so that it doesn' continue to overwrite itself on runs? I have done this with my own local copy by adding: import time
and changing the CSV_writer sub to this: csv_writer_subs = csv.writer(open(orgname + "_inventory_report." + time.strftime('%Y-%m-%d_%H:%M:%S') + ".csv", "wb"), delimiter=',', quotechar='"', quoting=csv.QUOTE_ALL)
Output for the file name looks like this now: MyOrg_inventory_report.2017-04-03_19:34:05.csv
The text was updated successfully, but these errors were encountered:
I think I'd add an --output switch, allowing the user to do whatever they want. And default it to something like %(org)s_inventory_report_%(time)s.csv.
Can I make a suggestion to add a timestamp to the output so that it doesn' continue to overwrite itself on runs? I have done this with my own local copy by adding:
import time
and changing the CSV_writer sub to this:
csv_writer_subs = csv.writer(open(orgname + "_inventory_report." + time.strftime('%Y-%m-%d_%H:%M:%S') + ".csv", "wb"), delimiter=',', quotechar='"', quoting=csv.QUOTE_ALL)
Output for the file name looks like this now:
MyOrg_inventory_report.2017-04-03_19:34:05.csv
The text was updated successfully, but these errors were encountered: