Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
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 Crawler
Commits
8ae28108
Commit
8ae28108
authored
6 months ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8
parent
89586e23
No related branches found
No related tags found
2 merge requests
!198
REL: Release 0.10.0
,
!182
Better error message
Pipeline
#56533
passed with warnings
6 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/identifiable.py
+2
-2
2 additions, 2 deletions
src/caoscrawler/identifiable.py
with
2 additions
and
2 deletions
src/caoscrawler/identifiable.py
+
2
−
2
View file @
8ae28108
...
...
@@ -80,7 +80,7 @@ class Identifiable():
def
get_representation
(
self
)
->
str
:
return
sha256
(
Identifiable
.
_create_hashable_string
(
self
).
encode
(
'
utf-8
'
)).
hexdigest
()
@
staticmethod
@staticmethod
def
_value_representation
(
value
)
->
str
:
"""
returns the string representation of property values to be used in the hash function
...
...
@@ -103,7 +103,7 @@ class Identifiable():
else
:
raise
ValueError
(
f
"
Unknown datatype of the value:
{
value
}
"
)
@
staticmethod
@staticmethod
def
_create_hashable_string
(
identifiable
:
Identifiable
)
->
str
:
"""
creates a string from the attributes of an identifiable that can be hashed
...
...
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