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
65322bc7
Commit
65322bc7
authored
Jun 02, 2022
by
hemanthkumar.pasham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding project to tz function
parent
c4e18dcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
scripts/core/handlers/oee_handlers.py
scripts/core/handlers/oee_handlers.py
+10
-7
No files found.
scripts/core/handlers/oee_handlers.py
View file @
65322bc7
...
@@ -85,6 +85,7 @@ class Oee_Services:
...
@@ -85,6 +85,7 @@ class Oee_Services:
raise
raise
def
get_project_tz
(
self
):
def
get_project_tz
(
self
):
try
:
connection
=
self
.
mongo_connect
connection
=
self
.
mongo_connect
project_tz
=
connection
.
find
()
project_tz
=
connection
.
find
()
return_json
=
{}
return_json
=
{}
...
@@ -92,3 +93,5 @@ class Oee_Services:
...
@@ -92,3 +93,5 @@ class Oee_Services:
for
each_tz
in
each_project
:
for
each_tz
in
each_project
:
return_json
.
update
({
str
(
each_tz
.
get
(
"customer_project_name"
)):
str
(
each_tz
.
get
(
"timezone"
))})
return_json
.
update
({
str
(
each_tz
.
get
(
"customer_project_name"
)):
str
(
each_tz
.
get
(
"timezone"
))})
return
return_json
return
return_json
except
Exception
as
e
:
logger
.
info
(
"Exception occured while fetching project timezone"
)
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