From 8b14969869b0c9ffadcb0e4c103d50f0de074a03 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Tue, 18 Jun 2024 12:59:54 -0400 Subject: [PATCH] databse writes --- social.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/social.py b/social.py index ef779ae..5e7899b 100644 --- a/social.py +++ b/social.py @@ -637,8 +637,9 @@ def write_to_database(data, local_outputs): cols2 = ["num","name", "comment", 'rating','picsURL','picsLocalpath','source','date', 'address','dictPostComplete'] #df = pd.DataFrame(local_outputs["xls"], columns=cols) - df = pd.DataFrame(local_outputs['xlsdf'].values, columns=cols) - df2 = pd.DataFrame(local_outputs['posts'].values, columns=cols2) + df = pd.DataFrame(local_outputs['xlsdf']) +# df = pd.DataFrame(local_outputs['xlsdf'].values, columns=cols2) + df2 = pd.DataFrame(local_outputs['posts']) # print ('Dropped items not included in sync to database: ',df2.dropna(inplace=True)) # rows = list(data) # if env.needreversed: