export recipe without wrting files

This commit is contained in:
vabene1111
2021-02-07 14:01:37 +01:00
parent 3e7f96c0b8
commit 585c31490a
2 changed files with 11 additions and 20 deletions

View File

@@ -26,11 +26,3 @@ class Integration:
return img_f
except:
return None
def get_tmp_dir_path(self):
path = os.path.join(tempfile.gettempdir(), 'recipe_io', str(self.request.user.pk))
os.makedirs(path, exist_ok=True)
return path
def delete_temp_dir_path(self):
os.remove(self.get_tmp_dir_path())