-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_config.py
35 lines (26 loc) · 1.39 KB
/
user_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""
author: krishsharma0413
This file is to setup your tinder-for-reviews in a more user-friendly manner.
"""
table_name = "TABLE NAME"
primary_key = "PRIMARY KEY COLUMN NAME" # primary key of your database. If None, it will be auto generated.
DATABASE_PATH = "PATH TO YOUR DATABASE" # this is an example database.
# what all columns/headers does your sql data have?
headers = []
# which column/header do you want to be shown on the review card?
column_for_review = "please udpate this" # column name
review_type = "text" # options: "text" (support for image, videos soon)
# make sure this column data type supports floating point values
polarity_column = "please update this" # if set to None, a new column will be created with the name "polarity"
# what does each swipe add value to? please make sure these columns are int
# polarity wise, right is positive (+1), up is neutral (+0), and left is negative (-1)
left_swipe = ["", ""] # [column name, display name (label on the website)]
up_swipe = ["", ""] # [column name, display name (label on the website)]
right_swipe = ["", ""] # [column name, display name (label on the website)]
# A list of tuple which has username and then password
users = [("admin", "admin")]
# setup host here for the server.
# future tests might require the testcase to run the server
# so to make sure it runs on the same host, you can set it up here.
host = "localhost"
port = 5556