prefix extension name with "nopaque_"

This commit is contained in:
Patrick Jentsch 2024-11-07 08:35:02 +01:00
parent f255fef631
commit 191d7813a7
6 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import shutil
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from app import db from app import db
from app.converters.vrt import normalize_vrt_file from app.converters.vrt import normalize_vrt_file
from app.extensions.sqlalchemy_extras import IntEnumColumn from app.extensions.nopaque_sqlalchemy_extras import IntEnumColumn
from .corpus_follower_association import CorpusFollowerAssociation from .corpus_follower_association import CorpusFollowerAssociation

View File

@ -6,7 +6,7 @@ from time import sleep
from pathlib import Path from pathlib import Path
import shutil import shutil
from app import db from app import db
from app.extensions.sqlalchemy_extras import ContainerColumn, IntEnumColumn from app.extensions.nopaque_sqlalchemy_extras import ContainerColumn, IntEnumColumn
class JobStatus(IntEnum): class JobStatus(IntEnum):

View File

@ -5,7 +5,7 @@ from pathlib import Path
import requests import requests
import yaml import yaml
from app import db from app import db
from app.extensions.sqlalchemy_extras import ContainerColumn from app.extensions.nopaque_sqlalchemy_extras import ContainerColumn
from .file_mixin import FileMixin from .file_mixin import FileMixin
from .user import User from .user import User
@ -104,7 +104,7 @@ class SpaCyNLPPipelineModel(FileMixin, HashidMixin, db.Model):
f.write(chunk) f.write(chunk)
pbar.close() pbar.close()
db.session.commit() db.session.commit()
def delete(self): def delete(self):
try: try:
self.path.unlink(missing_ok=True) self.path.unlink(missing_ok=True)

View File

@ -5,7 +5,7 @@ from pathlib import Path
import requests import requests
import yaml import yaml
from app import db from app import db
from app.extensions.sqlalchemy_extras import ContainerColumn from app.extensions.nopaque_sqlalchemy_extras import ContainerColumn
from .file_mixin import FileMixin from .file_mixin import FileMixin
from .user import User from .user import User