Completed
Pull Request — master (#341)
by
unknown
01:58
created

ArticleGet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %
Metric Value
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 1
1
from lib.actions import BaseAction
2
3
4
class ArticleGet(BaseAction):
5
    def run(self, slug):
6
        slug = self._convert_slug(slug)
7
        path = '/articles/%s' % slug
8
        response = self._api_get(path)
9
        article = response['articles']
10
11
        return article
12