Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oee-services
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
harshavardhan.c
oee-services
Commits
071b0650
Commit
071b0650
authored
May 23, 2022
by
hrishikesh.r
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes made to Oee_handlers.py
parent
dad10484
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
scripts/core/handlers/oee_handlers.py
scripts/core/handlers/oee_handlers.py
+8
-4
No files found.
scripts/core/handlers/oee_handlers.py
View file @
071b0650
...
...
@@ -28,11 +28,12 @@ class Oee_Services:
return_json
[
"status"
]
=
"success"
else
:
logger
.
info
(
"Unable to insert data in to Mongodb"
)
return
return_json
except
Exception
as
e
:
logger
.
exception
(
"Error occurred while inserting data"
)
return
return_json
def
get_oee_tag_mapping
(
self
,
get_oee_tag
:
get_oee_tag
):
try
:
...
...
@@ -50,9 +51,10 @@ class Oee_Services:
return_json
[
"endOfrecords"
]
=
False
else
:
return_json
[
"endOfrecords"
]
=
True
return
result
except
Exception
as
e
:
logger
.
exception
(
f
"Exception occured while fetching data as {e}"
)
return
result
def
delete_oee_tags
(
self
,
project_id
:
project_id
):
try
:
...
...
@@ -63,9 +65,10 @@ class Oee_Services:
return_json
[
"message"
]
=
"success"
return_json
[
"status"
]
=
"success"
return_json
[
"data"
]
=
result
return
result
except
Exception
as
e
:
logger
.
exception
(
f
"Exception occurred while fetching data as {e}"
)
return
result
def
update_oee_tags
(
self
,
update_oee_tags
:
update_oee_tags
):
try
:
...
...
@@ -76,6 +79,7 @@ class Oee_Services:
return_json
[
"message"
]
=
"success"
return_json
[
"status"
]
=
"success"
return_json
[
"data"
]
=
result
return
return_json
except
Exception
as
e
:
logger
.
exception
(
f
"Exception occured while fetching data as {e}"
)
return
return_json
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