mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
export recipe without wrting files
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user