more changes
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import os
|
||||
import inspect
|
||||
import sqlite3 as sql
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
from src import settings
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
from omegaconf import OmegaConf
|
||||
from typing import Any, List, Optional, Tuple, Union
|
||||
import datetime
|
||||
from src import logger
|
||||
from src.backend.db import (
|
||||
@@ -1499,7 +1497,7 @@ class Database:
|
||||
else: return None
|
||||
|
||||
def getElsaProfs(self)->list[str]:
|
||||
query = f"SELECT fullname FROM elsa_prof"
|
||||
query = "SELECT fullname FROM elsa_prof"
|
||||
data = self.query_db(query)
|
||||
if data:
|
||||
return [i[0] for i in data]
|
||||
|
||||
@@ -9,7 +9,7 @@ def delete_temp_contents():
|
||||
"""
|
||||
delete_temp_contents deletes the contents of the temp directory.
|
||||
"""
|
||||
path = database.tempdir
|
||||
path = database.temp
|
||||
path = path.replace("~", str(Path.home()))
|
||||
path = Path(path)
|
||||
path = path.resolve()
|
||||
|
||||
Reference in New Issue
Block a user