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
f1897415
Commit
f1897415
authored
Nov 20, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Pylint models
parent
67c0d0ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
hyperdata.py
gargantext/models/hyperdata.py
+2
-2
nodes.py
gargantext/models/nodes.py
+1
-2
users.py
gargantext/models/users.py
+0
-3
No files found.
gargantext/models/hyperdata.py
View file @
f1897415
...
...
@@ -119,8 +119,8 @@ class NodeHyperdata(Base):
else
:
self
.
value_flt
=
value
@
classproperty
def
value
(
cls
):
@
classproperty
#Pylint don't know @classproperty
def
value
(
cls
):
#pylint: disable=method-hidden, no-self-argument
"""Pseudo-attribute used for hyperdata comparison inside a query.
"""
return
HyperdataValueComparer
()
...
...
gargantext/models/nodes.py
View file @
f1897415
from
gargantext.util.db
import
session
from
gargantext.util.files
import
upload
from
gargantext.constants
import
*
from
gargantext.constants
import
NODETYPES
,
LISTTYPES
from
datetime
import
datetime
...
...
gargantext/models/users.py
View file @
f1897415
...
...
@@ -64,9 +64,6 @@ class User(DjangoBase):
return
(
node
.
user_id
==
self
.
id
)
or
\
node
.
id
in
(
contact
.
id
for
contact
in
self
.
contacts
())
def
get_params
(
self
,
username
=
None
):
print
(
self
.
__dict__
.
items
())
return
self
.
hyperdata
class
Contact
(
Base
):
__tablename__
=
'contacts'
...
...
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