SIENTIAPDE-1184
Changing "updated_at" type from str to datetime
This commit is contained in:
@@ -198,7 +198,7 @@ class Formatters(BaseActivity):
|
|||||||
if schedule_name in current_schedules:
|
if schedule_name in current_schedules:
|
||||||
|
|
||||||
update_timestamp = schedule.get(
|
update_timestamp = schedule.get(
|
||||||
'updated_at', datetime.now().strftime(DEFAULT_DATE_FORMAT))
|
'updated_at', datetime.now())
|
||||||
|
|
||||||
old_timestamp = current_schedules[schedule_name]
|
old_timestamp = current_schedules[schedule_name]
|
||||||
|
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ class MongoDB(BaseActivity):
|
|||||||
"""
|
"""
|
||||||
updated_pipelines = input_data.get("updated_pipelines", [])
|
updated_pipelines = input_data.get("updated_pipelines", [])
|
||||||
metadata = input_data.get("metadata", {})
|
metadata = input_data.get("metadata", {})
|
||||||
now = datetime.now().strftime(DEFAULT_DATE_FORMAT)
|
now = datetime.now()
|
||||||
collection = self.database["orchestrated_schedules"]
|
collection = self.database["orchestrated_schedules"]
|
||||||
|
|
||||||
argument = [
|
argument = [
|
||||||
@@ -245,7 +245,7 @@ class MongoDB(BaseActivity):
|
|||||||
metadata = input_data.get("metadata", {})
|
metadata = input_data.get("metadata", {})
|
||||||
collection = self.database["orchestrated_schedules"]
|
collection = self.database["orchestrated_schedules"]
|
||||||
|
|
||||||
now = datetime.now().strftime(DEFAULT_DATE_FORMAT)
|
now = datetime.now()
|
||||||
|
|
||||||
argument = [
|
argument = [
|
||||||
{"schedule_name": pipeline["schedule_name"],
|
{"schedule_name": pipeline["schedule_name"],
|
||||||
|
|||||||
Reference in New Issue
Block a user