Skip to content

Commit

Permalink
fix: ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuzooVn committed Sep 6, 2024
1 parent bd0dd15 commit cdf2244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/controllers/console/app/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ def get(self, app_model):
start_datetime_utc = start_datetime_timezone.astimezone(utc_timezone)

match args["sort_by"]:
case 'updated_at' | '-updated_at':
case "updated_at" | "-updated_at":
query = query.where(Conversation.updated_at >= start_datetime_utc)
case 'created_at' | '-created_at' | _:
case "created_at" | "-created_at" | _:
query = query.where(Conversation.created_at >= start_datetime_utc)

if args["end"]:
Expand All @@ -215,9 +215,9 @@ def get(self, app_model):
end_datetime_utc = end_datetime_timezone.astimezone(utc_timezone)

match args["sort_by"]:
case 'updated_at' | '-updated_at':
case "updated_at" | "-updated_at":
query = query.where(Conversation.updated_at <= end_datetime_utc)
case 'created_at' | '-created_at' | _:
case "created_at" | "-created_at" | _:
query = query.where(Conversation.created_at <= end_datetime_utc)

if args["annotation_status"] == "annotated":
Expand Down

0 comments on commit cdf2244

Please sign in to comment.