Delete old code

This commit is contained in:
Oliver Walters 2020-04-07 08:12:10 +10:00
parent 7fb89e4dbe
commit 16d3a87e78

View File

@ -26,8 +26,6 @@ class PartConfig(AppConfig):
for part in Part.objects.all():
if part.image:
url = part.image.thumbnail.name
#if url.startswith('/'):
# url = url[1:]
loc = os.path.join(settings.MEDIA_ROOT, url)
if not os.path.exists(loc):
print("InvenTree: Generating thumbnail for Part '{p}'".format(p=part.name))