-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
34 lines (25 loc) · 990 Bytes
/
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
#VACCINE ENDPOINTS
VACCINE_ENDPOINT = 'https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id={district_id}&date={date}'
VACCINE_ENDPOINT_PINCODE = 'https://cdn-api.co-vin.in/api/v2/appointment/sessions/calendarByPin?pincode={pincode}&date={date}'
#QUERY ON PINCODE OR DISTRICT BASE
SELECT_PINCODE_QUERY = False
VACCINE_MINIMUM_AVAILABLE_CAPACITY = 2
# mailer config
GMAIL_USER = 'Gmail Email User'
GMAIL_PASSWORD = 'GMAIL PASSWORD'
TO_USERS = ['LIST OF EMAIL RECEIPIENTS']
# Delay interval
DELAY_INTERVAL = 20
# Numdays
NUMDAYS = 2
#importing the module
import logging
import sys
#now we will Create and configure logger
logging.basicConfig(filename="std.log", format='%(asctime)s %(message)s', filemode='a')
stdout_handler = logging.StreamHandler(sys.stdout)
#Let us Create an object
logger=logging.getLogger()
logger.addHandler(stdout_handler)
#Now we are going to Set the threshold of logger to DEBUG
logger.setLevel(logging.DEBUG)