Fix to object parsing code.

This commit is contained in:
Michael Woods
2025-02-16 13:33:28 -05:00
parent 6267063e77
commit b369080f41
2 changed files with 4 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ class Server:
logging.debug("Connection marked as closing. Ignoring it.")
return
req_root_path = req.path.split("/")[0]
if 'quick' in req.vars:
if ('quick' in req.vars) or (req_root_path == "job"):
logging.debug("Setting quick job timer for a quick job.")
self.job_check_interval = 8
self.quick_job = True

View File

@@ -173,6 +173,7 @@ class Object(persistent.Persistent):
@classmethod
def from_dict(cls, obj: dict) -> Self:
o = Object(name=obj['name'])
if 'uuid_bytes' in obj:
if obj['uuid_bytes']:
o._uuid = UUID(bytes=obj['uuid_bytes'])
o.private = obj['private']