Skip to content

Commit

Permalink
warning fixws
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Jul 24, 2024
1 parent 4cab3d7 commit be1d67b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pepdbagent/modules/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ def create(
:param update_only: update only schema if exists [Default: False]
"""

if description:
schema["description"] = description
else:
description = schema.get("description", "")

if self.exist(namespace, name):
if overwrite:
self.update(namespace, name, schema, description)
Expand Down Expand Up @@ -553,7 +558,7 @@ def group_remove_schema(
Schemas.name == schema_name,
)
)
.subquery(),
.scalar_subquery(),
SchemaGroupRelations.group_id
== select(SchemaGroups.id)
.where(
Expand All @@ -562,7 +567,7 @@ def group_remove_schema(
SchemaGroups.name == name,
)
)
.subquery(),
.scalar_subquery(),
)
)

Expand Down

0 comments on commit be1d67b

Please sign in to comment.