Merge remote-tracking branch 'origin/api-v1.10.0' into dev
This commit is contained in:
commit
fe925a288a
1 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ def get_dashboard(project_id, user_id, dashboard_id):
|
|||
w["edited_at"] = TimeUTC.datetime_to_timestamp(w["edited_at"])
|
||||
w["config"]["col"] = w["default_config"]["col"]
|
||||
w["config"]["row"] = w["default_config"]["row"]
|
||||
# w.pop("default_config")
|
||||
w.pop("default_config")
|
||||
for s in w["series"]:
|
||||
s["created_at"] = TimeUTC.datetime_to_timestamp(s["created_at"])
|
||||
return helper.dict_to_camel_case(row)
|
||||
|
|
@ -135,7 +135,7 @@ def update_dashboard(project_id, user_id, dashboard_id, data: schemas.EditDashbo
|
|||
|
||||
cur.execute(cur.mogrify(pg_query, params))
|
||||
|
||||
return get_dashboard(project_id=project_id, user_id=user_id, dashboard_id=dashboard_id)
|
||||
return {"success": True}
|
||||
|
||||
|
||||
def get_widget(project_id, user_id, dashboard_id, widget_id):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue