Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ValUnifer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPIPAN
ValUnifer
Commits
add7a315
Commit
add7a315
authored
Oct 26, 2023
by
dcz
Browse files
Options
Downloads
Patches
Plain Diff
Attach free lus bugfix;
parent
3c9e969b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
entries/views.py
+3
-4
3 additions, 4 deletions
entries/views.py
with
3 additions
and
4 deletions
entries/views.py
+
3
−
4
View file @
add7a315
...
...
@@ -1090,11 +1090,10 @@ def ajax_synsets(request, base, pos):
def
lexical_units_without_empty_frames
(
obj_results
):
for
lu
in
obj_results
.
all
():
lu
.
_frames
=
lu
.
_frames
[
0
]
if
lu
.
_frames
and
len
(
lu
.
_frames
)
>
0
else
None
if
lu
.
_frames
is
None
:
continue
else
:
if
lu
.
_frames
and
len
(
lu
.
_frames
)
>
0
:
yield
lu
else
:
continue
@ajax
(
method
=
'
get
'
,
encode_result
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment