Ejemplo n.º 1
0
def cleanup_uploaded_log_file(sender, instance, **kwargs):
	from hsreplaynet.utils import delete_file_async

	file = instance.file
	if file.name:
		delete_file_async(file.name)

	descriptor = instance.descriptor
	if descriptor.name:
		delete_file_async(descriptor.name)
Ejemplo n.º 2
0
def cleanup_uploaded_log_file(sender, instance, **kwargs):
	from hsreplaynet.utils import delete_file_async

	file = instance.file
	if file.name:
		delete_file_async(file.name)

	descriptor = instance.descriptor
	if descriptor.name:
		delete_file_async(descriptor.name)
Ejemplo n.º 3
0
def cleanup_hsreplay_file(sender, instance, **kwargs):
	from hsreplaynet.utils import delete_file_async
	file = instance.replay_xml
	if file.name:
		delete_file_async(file.name)
Ejemplo n.º 4
0
def cleanup_hsreplay_file(sender, instance, **kwargs):
	from hsreplaynet.utils import delete_file_async
	file = instance.replay_xml
	if file.name:
		delete_file_async(file.name)