This commit is contained in:
Egor Matveev
2022-02-07 22:41:18 +03:00
parent cbd4c7987f
commit b0fab1cc25
2 changed files with 9 additions and 6 deletions

View File

@@ -30,10 +30,10 @@ class Command(BaseCommand):
print(e)
solution.result = "TE"
solution.save()
# finally:
# path = join("solutions", str(id))
# if exists(path):
# rmtree(path)
finally:
path = join("solutions", str(id))
if exists(path):
rmtree(path)
channel.basic_consume(queue="test", on_message_callback=callback, auto_ack=True)
channel.start_consuming()