Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
fa4f721c
Commit
fa4f721c
authored
Jul 27, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIXING new RESOURCETYPE definition
parent
aa5ec158
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
projects.py
gargantext/views/pages/projects.py
+6
-3
No files found.
gargantext/views/pages/projects.py
View file @
fa4f721c
...
...
@@ -4,6 +4,10 @@ from gargantext.util.db_cache import cache
from
gargantext.util.files
import
upload
from
gargantext.models
import
*
from
gargantext.constants
import
*
from
gargantext.util.scheduling
import
scheduled
from
gargantext.util.toolchain
import
parse_extract_indexhyperdata
from
datetime
import
datetime
from
collections
import
defaultdict
from
django.utils.translation
import
ugettext_lazy
...
...
@@ -113,7 +117,8 @@ def project(request, project_id):
resources
=
corpus
.
resources
()
if
len
(
resources
):
resource
=
resources
[
0
]
resource_type_name
=
RESOURCETYPES
[
resource
[
'type'
]][
'name'
]
#resource_type_name = RESOURCETYPES[resource['type']]['name']
resource_type_name
=
get_resource
(
resource
[
"type"
])[
"name"
]
else
:
print
(
"(WARNING) PROJECT view: no listed resource"
)
# add some data for the viewer
...
...
@@ -168,5 +173,3 @@ def project(request, project_id):
'query_size'
:
QUERY_SIZE_N_DEFAULT
,
},
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment