-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plex init
now adds userId annotation upon creating io.json
#609
plex init
now adds userId annotation upon creating io.json
#609
Conversation
LAB-549 userId annotation doesn't pass through on plex pip runs
Currently, the only annotation which seems to send is "python". Expected behavior is to also add userId when it is read from env variable |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
python/src/plex/__init__.py
Outdated
@@ -105,7 +105,7 @@ def plex_upload(file_path: str, wrap_file=True, plex_path="plex"): | |||
if not wrap_file: | |||
cmd.append("-w=false") | |||
|
|||
with subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=1, universal_newlines=True) as p: | |||
with subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=1, universal_newlines=True, env=os.environ) as p: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can change this later, not a blocker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got rid of them, they're not needed and were just used for diagnosing the problem. Thanks for flagging 🐞
Summary
init
now auto adds userId annotationPreviously was only with
create
, now this feature is ininit
.Environment Variable Check
An environmental variable
RECIPIENT_WALLET
check has been introduced inpython/dev/example.py
. This ensures that a necessary variable for transaction processes is present before operations proceed, providing a safeguard against potential transaction errors or delays.