Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
"type" : "job",
"data" : {
# Add job information
- "id" : job.uuid,
+ "id" : "%s" % job.uuid,
"name" : "%s" % job,
"arch" : job.arch,
table = "build_groups"
def __str__(self):
- return self.uuid
+ return "%s" % self.uuid
def __iter__(self):
return iter(self.builds)
return q
async def _import_logfile(self, upload):
+ uuid = "%s" % self.uuid
+
# Create some destination path
path = self.backend.path(
"logs",
"jobs",
- self.uuid[0:2],
- self.uuid[2:4],
- "%s.log.gz" % self.uuid[4:],
+ uuid[0:2],
+ uuid[2:4],
+ "%s.log.gz" % uuid[4:],
)
# Create parent directory
# Send the ID of the upload back to the client
self.finish({
- "id" : upload.uuid,
+ "id" : "%s" % upload.uuid,
"expires_at" : upload.expires_at.isoformat(),
})