Studentmediene/kapina-backend

View on GitHub
api_graphql/schema.py

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

@staticmethod
def resolve_all_episodes(root, info, offset=0, count=None):
episodes = get_public_episodes(Episode.objects)
return get_offset(episodes, offset, count)
Severity: Minor
Found in api_graphql/schema.py and 1 other location - About 40 mins to fix
api_graphql/schema.py on lines 282..285

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

@staticmethod
def resolve_all_posts(root, info, offset=0, count=None):
posts = get_public_posts(Post.objects)
return get_offset(posts, offset, count)
Severity: Minor
Found in api_graphql/schema.py and 1 other location - About 40 mins to fix
api_graphql/schema.py on lines 270..273

There are no issues that match your filters.

Category
Status