Browse Source

Merge pull request #58 from scossu/fix_57

Fix LDP-DC logic typo. Fixes #57.
Stefano Cossu 7 years ago
parent
commit
9e85f6ece9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lakesuperior/model/ldpr.py

+ 1 - 1
lakesuperior/model/ldpr.py

@@ -881,7 +881,7 @@ class Ldpr(metaclass=ABCMeta):
             from lakesuperior.model.ldp_factory import LdpFactory
 
             s = cont_rsrc.metadata.value(cont_rsrc.uri, self.MBR_RSRC_URI)
-            p = cont_rsrc.metadata.value(cont_rsrc_uri, self.MBR_REL_URI)
+            p = cont_rsrc.metadata.value(cont_rsrc.uri, self.MBR_REL_URI)
 
             if cont_rsrc.metadata[RDF.type: nsc['ldp'].DirectContainer]:
                 logger.info('Parent is a direct container.')