Added conf.SAVE parameter to select if you want the database involved or not
This commit is contained in:
parent
5fa96a08bb
commit
1c27064369
|
@ -1,5 +1,7 @@
|
|||
DEBUG = False
|
||||
|
||||
SAVE = True
|
||||
|
||||
###
|
||||
# TEXTURES
|
||||
###
|
||||
|
|
|
@ -31,6 +31,7 @@ for path in conf.TEXTURES_PATHS:
|
|||
# GO!
|
||||
for f in listdir(path):
|
||||
if isfile(join(path, f)):
|
||||
if conf.SAVE:
|
||||
# Copy original image
|
||||
destiny_path = '../../minecraftcodex/database/static/%s' % join(path, f).\
|
||||
replace('jarfile/', '')
|
||||
|
@ -56,7 +57,8 @@ for path in conf.TEXTURES_PATHS:
|
|||
)
|
||||
)
|
||||
|
||||
for texture in TEXTURES:
|
||||
if conf.SAVE:
|
||||
for texture in TEXTURES:
|
||||
try:
|
||||
item = Texture.objects.get(
|
||||
name=texture.name,
|
||||
|
|
Loading…
Reference in New Issue