Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
task_15_pollution_data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arun.uday
task_15_pollution_data
Commits
872b1396
Commit
872b1396
authored
Feb 20, 2023
by
arun.uday
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for mapper none value added
parent
f839f2a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
scripts/core/handlers/receiver_handlers/select_db_redis.py
scripts/core/handlers/receiver_handlers/select_db_redis.py
+4
-2
scripts/temp/log_task15.log
scripts/temp/log_task15.log
+5
-0
No files found.
scripts/core/handlers/receiver_handlers/select_db_redis.py
View file @
872b1396
...
@@ -11,7 +11,9 @@ def operations_call_(json_poll_data):
...
@@ -11,7 +11,9 @@ def operations_call_(json_poll_data):
1
:
redis_db_connection
.
conn_maintenance
,
1
:
redis_db_connection
.
conn_maintenance
,
2
:
redis_db_connection
.
conn_error
2
:
redis_db_connection
.
conn_error
}
}
# insert the data to the db
conn
=
mapper
.
get
(
json_poll_data
[
'data_quality'
])
insert_data
(
mapper
.
get
(
json_poll_data
[
'data_quality'
]),
json_poll_data
)
if
conn
:
# insert the data to the db
insert_data
(
conn
,
json_poll_data
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
exception
(
"Redis mapper Failed"
,
e
)
logger
.
exception
(
"Redis mapper Failed"
,
e
)
scripts/temp/log_task15.log
View file @
872b1396
...
@@ -4,3 +4,8 @@
...
@@ -4,3 +4,8 @@
2023-02-20 16:17:18 - INFO - Data entered
2023-02-20 16:17:18 - INFO - Data entered
2023-02-20 16:22:23 - INFO - Data entered
2023-02-20 16:22:23 - INFO - Data entered
2023-02-20 16:23:45 - INFO - Data entered
2023-02-20 16:23:45 - INFO - Data entered
2023-02-20 16:30:23 - INFO - Data entered
2023-02-20 16:33:45 - INFO - Data entered
2023-02-20 16:37:28 - INFO - Data entered
2023-02-20 16:38:25 - INFO - Data entered
2023-02-20 16:38:25 - INFO - Data entered
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