Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backup_filebase_locally.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
from kubo_rpc_api import KuboRPC
from filebase_pin_api import FilebasePinAPI

RPC = KuboRPC(log_filepath="backup_filebase_locally.log",
RPC = KuboRPC(log_filepath="logs/backup_filebase_locally.log",
log_level=logging.DEBUG)
FILEBASE_API = FilebasePinAPI(log_filepath="backup_filebase_locally.log",
FILEBASE_API = FilebasePinAPI(log_filepath="logs/backup_filebase_locally.log",
log_level=logging.DEBUG)
BUCKETS: List[str] = [
'kleros',
Expand Down
2 changes: 1 addition & 1 deletion get_filebase_cids.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main() -> None:
Returns:
None
"""
filebase_api = FilebasePinAPI(log_filepath="get_filebase_cids.log")
filebase_api = FilebasePinAPI(log_filepath="logs/get_filebase_cids.log")
for bucket in BUCKETS:
cids = filebase_api.get_all_cids(bucket)
print(f"{bucket} has {len(cids)} CIDs")
Expand Down
2 changes: 1 addition & 1 deletion metadata_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

load_dotenv()

filebase_api = FilebasePinAPI('metadata_checker.log')
filebase_api = FilebasePinAPI('logs/metadata_checker.log')
print(filebase_api.get_file(
'kleros', 'QmVq2GstdkVQDNQFZMLGLFpVxwHR2abYyYgFZwh8GtkkWi'))
4 changes: 2 additions & 2 deletions update_filebase_with_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def main(filepath, bucket_name="kleros"):
The first 10 CIDs from the list.
The number of CIDs in Kleros IPFS, in Filebase, and the number of missed CIDs in Filebase.
"""
kubo_rpc = KuboRPC(log_filepath='update_filebase_with_local.log')
kubo_rpc = KuboRPC(log_filepath='logs/update_filebase_with_local.log')
filebase_api = FilebasePinAPI(
log_filepath='update_filebase_with_local.log')
log_filepath='logs/update_filebase_with_local.log')
bucket_name = 'kleros'
cids: List[str] = kubo_rpc.read_pin_ls_output(filepath)
print(cids[0:10])
Expand Down