Am I an idiot? Still yes.

This commit is contained in:
Michael Woods
2025-02-15 20:13:37 -05:00
parent 45644b4795
commit e7cd7188b0

View File

@@ -279,7 +279,7 @@ def handle_new_job_post(req: Request, conn: PacketServerConnection, db: ZODB.DB)
if 'env' in req.payload: if 'env' in req.payload:
if type(req.payload['env']) is dict: if type(req.payload['env']) is dict:
for key in req.payload['env']: for key in req.payload['env']:
env[key] = req.payload[key] env[key] = req.payload['env'][key]
job = Job(req.payload['cmd'], owner=username, env=env, files=files) job = Job(req.payload['cmd'], owner=username, env=env, files=files)
with db.transaction() as storage: with db.transaction() as storage:
try: try: