Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.83.1 fixes abs vs relative path issue #52

Merged
merged 2 commits into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion utils/export_columns_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ def build_dataframe_for_export (session, stage = "dsq"):
df[item] = None
return df

# def get_service_file_path():

def dump_collected_data_to_sheet(df):
gc = pygsheets.authorize(service_file='etc/secrets/dsqscreen-401016-0e6db07e3d56.json')
# TODO: fix this to use environment for prod / debug
try:
gc = pygsheets.authorize(service_file='/etc/secrets/dsqscreen-401016-0e6db07e3d56.json')
except:
gc = pygsheets.authorize(service_file='etc/secrets/dsqscreen-401016-0e6db07e3d56.json')

sh = gc.open('DSQScreen Output')
wks=sh[0]
# finds if session_id already exists in the sheet and replaced values if so
Expand Down