Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MQTT-Redis
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arjun.b
MQTT-Redis
Commits
b9569af7
Commit
b9569af7
authored
Feb 03, 2023
by
arjun.b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
structure changed
parent
746834e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
scripts/config/redis_connection.py
+1
-1
scripts/core/handlers/publisher_handler.py
+1
-1
No files found.
scripts/config/redis_connection.py
View file @
b9569af7
...
@@ -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}'
)
...
...
scripts/core/handlers/publisher_handler.py
View file @
b9569af7
...
@@ -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: "
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment