Skip to content

Commit 35812a4

Browse files
committed
format
1 parent e85fc92 commit 35812a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backend/btrixcloud/crawlconfigs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,8 @@ async def get_crawl_config_tags(self, org):
992992
{"$match": {"oid": org.id}},
993993
{"$unwind": "$tags"},
994994
{"$group": {"_id": "$tags", "count": {"$sum": 1}}},
995-
{"$project": { "tag": "$_id", "count": "$count", "_id":0}},
996-
{"$sort": {"count": -1, "tag": 1} }
995+
{"$project": {"tag": "$_id", "count": "$count", "_id": 0}},
996+
{"$sort": {"count": -1, "tag": 1}},
997997
]
998998
).to_list()
999999
return tags

backend/btrixcloud/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ class CrawlConfigAddedResponse(BaseModel):
585585
storageQuotaReached: bool
586586
execMinutesQuotaReached: bool
587587

588+
588589
# ============================================================================
589590
class CrawlConfigTagCount(BaseModel):
590591
"""Response model for crawlconfig tag count"""

0 commit comments

Comments
 (0)