Skip to content

Commit

Permalink
Update IPFS-related code to use ES6 import/export syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
endomorphosis committed Jun 12, 2024
1 parent bc68923 commit ca29e19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ipfs_transformers/ipfs_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, collection=None, meta=None):
}
from ipfs_model_manager import ipfs_model_manager as ipfs_model_manager
self.model_manager = ipfs_model_manager(collection, meta)
self.model_manager.load_collection_cache()
self.model_manager.load_collection_cache()
self.model_manager.state()

def download(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import sys
import subprocess as process
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from ipfs_transformers.orbit_kit import orbit_kit
class orbit_kit:
from orbitdb_kit import orbitdb_kit
class orbitdb_kit:
def __init__(self, resources, meta=None):
self.resources = resources
self.meta = meta
Expand All @@ -22,6 +22,6 @@ def get_resources(self):
if __name__ == '__main__':
resources = {}
meta = {}
orbit_kit = orbit_kit(resources, meta)
orbit_kit = orbitdb_kit(resources, meta)
print(orbit_kit.get_resources())

0 comments on commit ca29e19

Please sign in to comment.