Skip to content

Commit 4b6d261

Browse files
committed
code cleanup
1 parent 3819a83 commit 4b6d261

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/handlers/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def post(self):
382382
else:
383383
raise HTTPError(400, reason="Missing required form field: id")
384384

385+
385386
class MetaKGHandlerMixin:
386387
"""
387388
Mixin to provide reusable logic for filtering API information.
@@ -433,6 +434,8 @@ def get_filtered_api(self, api_dict):
433434
filtered_dict["bte"] = filtered_dict["api"].pop("bte")
434435

435436
return filtered_dict
437+
438+
436439
class MetaKGQueryHandler(MetaKGHandlerMixin,QueryHandler):
437440
"""
438441
Support metakg queries with biolink model's semantic descendants
@@ -717,6 +720,7 @@ async def get(self, *args, **kwargs):
717720
await asyncio.sleep(0.01)
718721
self.finish(res)
719722

723+
720724
class MetaKGParserHandler(MetaKGHandlerMixin, BaseHandler):
721725
"""
722726
Handles parsing of SmartAPI metadata from a given URL or request body.

0 commit comments

Comments
 (0)