Images prepended with 0

This commit is contained in:
Ruben van de Ven 2019-11-02 18:14:05 +01:00
parent 7df1cd7727
commit a2c20b533c

View file

@ -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: