Skip to content
Merged
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
5 changes: 3 additions & 2 deletions permanent_upload/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def main(environment, path):
timeout = 60
print(f"Current timeout is {timeout} seconds")

api = PermanentAPI(f"https://{environment}.permanent.org")
api = PermanentAPI(
f"https://{"app.dev" if environment == "dev" else environment}.permanent.org"
)
createaccount_result = api.create_account(email, password)
api.create_archive("Functional Filetype Test", "type.archive.person")
login_result = api.login(email, password)
Expand All @@ -58,7 +60,6 @@ def main(environment, path):
api.get_account(createaccount_result.response["AccountVO"]["accountId"])
api.logged_in()
parent_folder_id, parent_folder_link_id = api.get_folder_info()

files = get_file_list(path)
results = []
headers = ["File Name", "Type", "Status", "File Formats", "Time"]
Expand Down
Loading