Commit 20656759 authored by delanoe's avatar delanoe

[FIX] Removing format in resource name.

parent ad864e71
......@@ -4,6 +4,8 @@
from gargantext.util.lists import *
from gargantext.util.tools import datetime, convert_to_date
import re
LISTTYPES = {
'DOCUMENT' : WeightedList,
'GROUPLIST' : Translations,
......@@ -136,8 +138,8 @@ def resourcename(corpus):
Usage : resourcename(corpus) == "ISTex"
'''
resource = corpus.resources()[0]
return RESOURCETYPES[resource['type']]['name']
resourcename = RESOURCETYPES[resource['type']]['name']
return re.sub(r'\(.*', '', resourcename)
RESOURCETYPES = [
# type 0
......
......@@ -153,7 +153,7 @@
</a>
<br>
<span class="glyphicon glyphicon-cd" aria-hidden="true"></span>
{{ resourcename }}
{{ resourcename | truncatechars:20 }}
<br>
<span class="glyphicon glyphicon-file" aria-hidden="true"></span>
{{ corpus.name }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment