Commit 65322bc7 authored by hemanthkumar.pasham's avatar hemanthkumar.pasham

Adding project to tz function

parent c4e18dcf
......@@ -85,6 +85,7 @@ class Oee_Services:
raise
def get_project_tz(self):
try:
connection = self.mongo_connect
project_tz = connection.find()
return_json = {}
......@@ -92,3 +93,5 @@ class Oee_Services:
for each_tz in each_project:
return_json.update({str(each_tz.get("customer_project_name")): str(each_tz.get("timezone"))})
return return_json
except Exception as e:
logger.info("Exception occured while fetching project timezone")
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