Skip to content

Commit

Permalink
Not needed anymore this is implemented in searchByMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
cipres authored and cipres committed Dec 2, 2018
1 parent db8419c commit 731e23b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions galacteek/core/ipfsmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ def metaMatch(mark, field, regexp):
def search(
self,
bpath,
metadata=None,
category=None,
tags=[],
delete=False):
Expand All @@ -276,12 +275,6 @@ def search(
if not marks:
continue

if isinstance(metadata, dict):
title = metadata.get('title', None)
for mPath, mark in marks.items():
if title and re.search(title, mark['metadata']['title']):
return mPath, mark

if path in marks.keys():
if delete is True:
del marks[path]
Expand Down

0 comments on commit 731e23b

Please sign in to comment.