Skip to content

Commit

Permalink
Removed todo lines
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Dec 4, 2024
1 parent 1402a90 commit 5637580
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions openatlas/database/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,10 @@ def get_all_links_for_network(
FROM model.link l
JOIN model.entity de ON l.domain_id = de.id
JOIN model.entity re ON l.range_id = re.id
WHERE de.openatlas_class_name IN %(system_classes)s
AND re.openatlas_class_name IN %(system_classes)s;
WHERE de.openatlas_class_name IN %(system_classes)s
AND re.openatlas_class_name IN %(system_classes)s;
""",
{'system_classes': tuple(system_classes)})
# Todo: return list(g.cursor) would be better but triggers an API error
return [dict(row) for row in g.cursor.fetchall()]


Expand All @@ -202,5 +201,4 @@ def get_links_by_id_network(ids: list[int]) -> list[dict[str, Any]]:
WHERE l.range_id IN %(ids)s OR l.domain_id IN %(ids)s;
""",
{'ids': tuple(ids)})
# Todo: return list(g.cursor) would be better but triggers an API error
return [dict(row) for row in g.cursor.fetchall()]

0 comments on commit 5637580

Please sign in to comment.