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
0afb5bba
Commit
0afb5bba
authored
Oct 12, 2023
by
dcz
Browse files
Options
Downloads
Patches
Plain Diff
Loading entries with lu optimization bugfix
parent
47ae4a11
Branches
Branches containing commit
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
+2
-2
2 additions, 2 deletions
entries/views.py
with
2 additions
and
2 deletions
entries/views.py
+
2
−
2
View file @
0afb5bba
...
@@ -423,7 +423,7 @@ def get_entries(request):
...
@@ -423,7 +423,7 @@ def get_entries(request):
assert
(
not
errors_dict
)
assert
(
not
errors_dict
)
linked_ids
=
set
()
linked_ids
=
set
()
if
request
.
session
[
'
show_linked_entries
'
]
and
not
with_lexical_units
:
if
request
.
session
[
'
show_linked_entries
'
]
and
has_unified_frame
!=
'
true
'
:
entries_linked
=
Entry
.
objects
.
filter
(
pk__in
=
(
entries_linked
=
Entry
.
objects
.
filter
(
pk__in
=
(
Entry
.
objects
Entry
.
objects
.
filter
(
subentries__schema_hooks__argument_connections__schema_connections__subentry__entry__in
=
entries
)
.
filter
(
subentries__schema_hooks__argument_connections__schema_connections__subentry__entry__in
=
entries
)
...
@@ -481,7 +481,7 @@ def get_entries(request):
...
@@ -481,7 +481,7 @@ def get_entries(request):
def
iter_lexical_units
(
e
):
def
iter_lexical_units
(
e
):
for
lu
in
e
.
lexical_units
.
all
():
for
lu
in
e
.
lexical_units
.
all
():
lu
.
_frame
=
lu
.
_frames
[
0
]
if
lu
.
_frames
and
len
(
lu
.
_frames
)
>
0
else
None
lu
.
_frame
=
lu
.
_frames
[
0
]
if
lu
.
_frames
and
len
(
lu
.
_frames
)
>
0
else
None
if
lu
.
_frame
is
None
or
not
hasattr
(
lu
.
_frame
,
'
slowal_frame_2_unified_frame
'
):
if
lu
.
_frame
is
None
or
(
not
hasattr
(
lu
.
_frame
,
'
slowal_frame_2_unified_frame
'
)
and
has_unified_frame
==
'
true
'
)
:
continue
continue
else
:
else
:
yield
lu
yield
lu
...
...
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