From a2c20b533c995f23b67cd6ec46d0f0f4e3b9c4fe Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Sat, 2 Nov 2019 18:14:05 +0100 Subject: [PATCH] Images prepended with 0 --- sorteerhoed/HITStore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sorteerhoed/HITStore.py b/sorteerhoed/HITStore.py index 7f470c1..a0e5848 100644 --- a/sorteerhoed/HITStore.py +++ b/sorteerhoed/HITStore.py @@ -59,13 +59,13 @@ class HIT(Base): def getImagePath(self): - return os.path.join('../scanimation/interfaces/frames', f"{self.id}.jpg") + return os.path.join('../scanimation/interfaces/frames', f"{self.id:06d}.jpg") # def getImageUrl(self): # return f"{self.id}.jpg" def getSvgImageUrl(self): - return f"scans/{self.id}.svg" + return f"scans/{self.id:06d}.svg" def getStatus(self): if self.scanned_at: