Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
caosdb
Software
caosdb-pylib
Commits
a9456cad
Commit
a9456cad
authored
3 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
FIX: is_reference when None is passed
parent
ea5763be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!33
MAINT: change arguments of create_user
Pipeline
#10070
passed
3 years ago
Stage: code_style
Stage: linting
Stage: setup
Stage: test
Stage: deploy
Changes
1
Pipelines
8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosdb/common/datatype.py
+4
-0
4 additions, 0 deletions
src/caosdb/common/datatype.py
with
4 additions
and
0 deletions
src/caosdb/common/datatype.py
+
4
−
0
View file @
a9456cad
...
...
@@ -66,6 +66,10 @@ def is_reference(datatype):
RecordTypes
"""
if
datatype
is
None
:
raise
ValueError
(
"
Cannot decide whether datatype is reference if None
"
"
is supplied
"
)
if
datatype
in
[
DOUBLE
,
BOOLEAN
,
INTEGER
,
TEXT
,
DATETIME
]:
return
False
elif
is_list_datatype
(
datatype
):
...
...
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