diff --git a/data-view.py b/data-view.py index c38daee..bde5592 100644 --- a/data-view.py +++ b/data-view.py @@ -4,3 +4,4 @@ from datetime import datetime data_dict = pd.read_pickle("saved_data_dict.pkl") data_df = pd.DataFrame(data_dict) data_df.T.to_csv("data_df.csv") +print(datetime.now().strftime("%s")) diff --git a/data.py b/data.py index 2308ea5..0f1b661 100644 --- a/data.py +++ b/data.py @@ -55,6 +55,6 @@ datum_dict['lghtng_date'] = lightning_dict['date'] datum_dict['lghtng_time'] = lightning_dict['timestamp'] datum_dict['lghtng_scnt'] = lightning_dict['count'] datum_dict['lghtng_batt'] = lightning_dict['battery'] -data_dict[datetime.now().strftime('%Y%m%d-%H%M%S')] = datum_dict +data_dict[datetime.now().strftime('%s')] = datum_dict with open('saved_data_dict.pkl', 'wb') as f: pickle.dump(data_dict, f)