Fix to object parsing code.
This commit is contained in:
@@ -170,7 +170,7 @@ class Server:
|
|||||||
logging.debug("Connection marked as closing. Ignoring it.")
|
logging.debug("Connection marked as closing. Ignoring it.")
|
||||||
return
|
return
|
||||||
req_root_path = req.path.split("/")[0]
|
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.")
|
logging.debug("Setting quick job timer for a quick job.")
|
||||||
self.job_check_interval = 8
|
self.job_check_interval = 8
|
||||||
self.quick_job = True
|
self.quick_job = True
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ class Object(persistent.Persistent):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls, obj: dict) -> Self:
|
def from_dict(cls, obj: dict) -> Self:
|
||||||
o = Object(name=obj['name'])
|
o = Object(name=obj['name'])
|
||||||
|
if 'uuid_bytes' in obj:
|
||||||
if obj['uuid_bytes']:
|
if obj['uuid_bytes']:
|
||||||
o._uuid = UUID(bytes=obj['uuid_bytes'])
|
o._uuid = UUID(bytes=obj['uuid_bytes'])
|
||||||
o.private = obj['private']
|
o.private = obj['private']
|
||||||
|
|||||||
Reference in New Issue
Block a user