diff options
author | 2020-10-06 20:37:34 +0300 | |
---|---|---|
committer | 2020-10-06 20:37:34 +0300 | |
commit | fc11a23f6561407883aa2f6107f14f9089ac85af (patch) | |
tree | 18cdd02bc1a8cfae0ba785049d5eb85012772bb8 /pydis_site/apps/content/views | |
parent | Add dateutil dependency because datetime's fromisoformat don't work (diff) |
Implement fetching contributors and last modification date from GitHub
Diffstat (limited to 'pydis_site/apps/content/views')
-rw-r--r-- | pydis_site/apps/content/views/article.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pydis_site/apps/content/views/article.py b/pydis_site/apps/content/views/article.py index 02e8103f..42b92cee 100644 --- a/pydis_site/apps/content/views/article.py +++ b/pydis_site/apps/content/views/article.py @@ -5,7 +5,7 @@ from django.http import HttpResponse from django.shortcuts import render from django.views import View -from pydis_site.apps.content.utils import get_article, get_category +from pydis_site.apps.content.utils import get_article, get_category, get_github_information class ArticleView(View): @@ -38,5 +38,6 @@ class ArticleView(View): article_result["metadata"].get("relevant_link_values", "").split(",") ) if link != "" and value != "" }, + "github_data": get_github_information(article, category), } ) |