We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fa179 commit f91f1cfCopy full SHA for f91f1cf
phoenix-data/csv_to_json.py
@@ -71,5 +71,9 @@ def unique(x):
71
filename = f"{timestamp}.json"
72
# Write the JSON file
73
#with open(os.path.join(output_dir, filename), "w") as json_file:
74
- with s3.open(f"{bucket}/{filename}", "w") as json_file:
75
- json.dump(json_data, json_file, indent=4)
+ #We're just going to upload current date files
+ today = datetime.date.today().strftime("%Y-%m-%d")
76
+ date = timestamp.split("T")[0]
77
+ if date == today:
78
+ with s3.open(f"{bucket}/{filename}", "w") as json_file:
79
+ json.dump(json_data, json_file, indent=4)
0 commit comments