Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
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-advanced-user-tools
Commits
6ef0d68f
Commit
6ef0d68f
authored
6 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
ca3c6fee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/caosadvancedtools/cfood.py
+6
-1
6 additions, 1 deletion
src/caosadvancedtools/cfood.py
src/caosadvancedtools/crawler.py
+6
-6
6 additions, 6 deletions
src/caosadvancedtools/crawler.py
with
12 additions
and
7 deletions
src/caosadvancedtools/cfood.py
+
6
−
1
View file @
6ef0d68f
...
...
@@ -31,7 +31,12 @@ from datetime import datetime
import
caosdb
as
db
from
caosdb.exceptions
import
TransactionError
#from something import get_entity
def
get_entity
(
name
):
ent
=
db
.
Entity
(
name
=
name
)
ent
.
retrieve
()
return
ent
class
AbstractCFood
(
object
):
...
...
This diff is collapsed.
Click to expand it.
src/caosadvancedtools/crawler.py
+
6
−
6
View file @
6ef0d68f
...
...
@@ -35,18 +35,18 @@ class Crawler(object):
def
crawl
(
self
,
files
):
for
crawled_file
in
files
:
if
crawled_file
.
size
==
0
:
crawled_file
.
add_message
(
type
=
"
Warning
"
,
description
=
"
This file is empty. Shouldn
'
t we delete it?
"
)
self
.
report
.
append
(
f
)
#
if crawled_file.size == 0:
#
crawled_file.add_message(
#
type="Warning", description="This file is empty. Shouldn't we delete it?")
#
self.report.append(
crawled_file
)
continue
#
continue
for
cfood
in
self
.
food
:
match
=
cfood
.
pattern
.
match
(
crawled_file
.
path
)
if
match
is
not
None
:
cfood
.
treat_match
(
crawled_file
.
path
,
match
)
cfood
.
treat_match
(
crawled_file
,
match
)
@staticmethod
def
query_files
(
path
):
...
...
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