Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Workers
Base Worker
Commits
d14dd7a9
Commit
d14dd7a9
authored
3 years ago
by
Eva Bardou
Browse files
Options
Downloads
Patches
Plain Diff
Fix create_transcription_entity assertions
parent
c1a05b45
No related branches found
Branches containing commit
Tags
0.2.4-rc3
Tags containing commit
1 merge request
!99
Fix create_transcription_entity assertions
Pipeline
#78496
passed
3 years ago
Stage: test
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex_worker/worker/entity.py
+2
-2
2 additions, 2 deletions
arkindex_worker/worker/entity.py
with
2 additions
and
2 deletions
arkindex_worker/worker/entity.py
+
2
−
2
View file @
d14dd7a9
...
...
@@ -93,10 +93,10 @@ class EntityMixin(object):
entity
,
str
),
"
entity shouldn
'
t be null and should be of type str
"
assert
(
offset
and
isinstance
(
offset
,
int
)
and
offset
>=
0
offset
is
not
None
and
isinstance
(
offset
,
int
)
and
offset
>=
0
),
"
offset shouldn
'
t be null and should be a positive integer
"
assert
(
length
and
isinstance
(
length
,
int
)
and
length
>
0
length
is
not
None
and
isinstance
(
length
,
int
)
and
length
>
0
),
"
length shouldn
'
t be null and should be a strictly positive integer
"
if
self
.
is_read_only
:
logger
.
warning
(
...
...
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