Skip to content

Commit e9326b8

Browse files
committed
Third commit
1 parent 714a68c commit e9326b8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ This script allows users to download a CSV of raw SQL from queries in a report.
66

77
1. In Mode, generate API token (under Settings -> Your Name -> API Tokens).
88
2. Add the token and password values to the python.properties file.
9-
3. Modify lines 77 - 80 in demo.py to reflect the column names in your dataset.
10-
4. Run this script the first time using
11-
`python demo.py -org={{organization_username}} -reporttoken={{report_token}}`
12-
You will receive an error stating no querytoken was provide but querytokens will be printed above the error with it's SQL to help you choose the correct token.
13-
5. Once you've selected a querytoken, run the script using
14-
9+
3. Run this script using:
1510
`python demo.py -org={{organization_username}} -reporttoken={{report_token}}`
1611

1712
For example, for this report https://modeanalytics.com/modeanalytics/reports/eb7e7c23e72f I would run:

demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def get_mode_results():
2222
parser = argparse.ArgumentParser()
2323
parser.add_argument('-org', '--org')
2424
parser.add_argument('-reporttoken', '--reporttoken')
25-
parser.add_argument('-querytoken', '--querytoken')
2625
args = parser.parse_args()
2726

2827
mode_url = 'https://modeanalytics.com'

python.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
[ModeSection]
3+
token=
4+
password=
5+
6+
7+
8+

0 commit comments

Comments
 (0)