Skip to content

Commit 91e4674

Browse files
author
Cyrus Radfar
committed
Removed unneeded test/root causing code from bo/upgrade branch.
1 parent a60666b commit 91e4674

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

python_anvil/api.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -392,24 +392,8 @@ def create_etch_packet(
392392
)
393393

394394
payload = mutation.create_payload()
395-
396-
# FIXME: do something here to prevent or fix pydantic from converting
397-
# files into "SerializationIterator" objects
398395
variables = payload.model_dump(by_alias=True, exclude_none=True)
399396

400-
# print('Files', variables["files"])
401-
# print('Each')
402-
for file_obj in variables["files"]:
403-
if (
404-
file_obj["file"]
405-
and file_obj["file"].__class__.__name__ == 'SerializationIterator'
406-
):
407-
# print("FML1", file_obj["file"])
408-
# print("FML2", dir(file_obj["file"]))
409-
410-
# TODO: how to get the value out of the iterator??????????
411-
file_obj["file"] = file_obj["file"]
412-
413397
return self.mutate(mutation, variables=variables, upload_files=True, **kwargs)
414398

415399
def generate_etch_signing_url(self, signer_eid: str, client_user_id: str, **kwargs):

0 commit comments

Comments
 (0)