Commit b9569af7 by arjun.b

structure changed

parent 746834e1
...@@ -6,7 +6,7 @@ from scripts.config.application_config import redis_host, redis_port ...@@ -6,7 +6,7 @@ from scripts.config.application_config import redis_host, redis_port
try: try:
# Connect to Redis # Connect to Redis
r = redis.Redis(host=redis_host, port=int(redis_port), db=0) r = redis.Redis(host=redis_host, port=int(redis_port), db=1)
except Exception as e: except Exception as e:
logging.error(f'cant connect to redis {e}') logging.error(f'cant connect to redis {e}')
......
...@@ -7,7 +7,7 @@ class PublishHandler: ...@@ -7,7 +7,7 @@ class PublishHandler:
doctors = ['Dr. Smith', 'Dr. Johnson', 'Dr. Brown', "Dr. Arjun B"] doctors = ['Dr. Smith', 'Dr. Johnson', 'Dr. Brown', "Dr. Arjun B"]
i = 1 i = 1
while i: while i:
print("1.Consult a Doctor\n""2.Exit") print("--------Consult a Doctor------\n")
choice = int(input("Enter your choice:")) choice = int(input("Enter your choice:"))
if choice == 1: if choice == 1:
patient_id = input("Enter patient id: ") patient_id = input("Enter patient id: ")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment