mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Remove if Brickstore.graph.triples check
This returns a generator type which I believe is always truthy, so it didn't change anything.
This commit is contained in:
@@ -116,10 +116,9 @@ class Brick(blenderbim.core.tool.Brick):
|
||||
|
||||
@classmethod
|
||||
def remove_relation(cls, brick_uri, predicate, object):
|
||||
if BrickStore.graph.triples((brick_uri, predicate, object)):
|
||||
with BrickStore.new_changeset() as cs:
|
||||
for triple in BrickStore.graph.triples((brick_uri, predicate, object)):
|
||||
cs.remove(triple)
|
||||
with BrickStore.new_changeset() as cs:
|
||||
for triple in BrickStore.graph.triples((brick_uri, predicate, object)):
|
||||
cs.remove(triple)
|
||||
|
||||
@classmethod
|
||||
def clear_brick_browser(cls):
|
||||
|
||||
Reference in New Issue
Block a user