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
35202cb4
Commit
35202cb4
authored
2 years ago
by
Yoann Schneider
Committed by
Bastien Abadie
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Create missing classes for Transcription, Corpus
parent
007a33ec
No related branches found
No related tags found
1 merge request
!199
Create missing classes for Transcription, Corpus
Pipeline
#79478
passed
2 years ago
Stage: test
Stage: build
Stage: release
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex_worker/models.py
+18
-0
18 additions, 0 deletions
arkindex_worker/models.py
with
18 additions
and
0 deletions
arkindex_worker/models.py
+
18
−
0
View file @
35202cb4
...
...
@@ -220,3 +220,21 @@ class Element(MagicDict):
else
:
type_name
=
str
(
self
.
type
)
return
"
{} {} ({})
"
.
format
(
type_name
,
self
.
name
,
self
.
id
)
class
Transcription
(
MagicDict
):
"""
Describes an Arkindex element
'
s transcription.
"""
def
__str__
(
self
):
return
"
Transcription ({})
"
.
format
(
self
.
id
)
class
Corpus
(
MagicDict
):
"""
Describes an Arkindex corpus.
"""
def
__str__
(
self
):
return
"
Corpus {} ({})
"
.
format
(
self
.
name
,
self
.
id
)
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