Selaa lähdekoodia

Fix: none parse_config updating. (#6092)

### What problem does this PR solve?

#6081

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
Kevin Hu 7 kuukautta sitten
vanhempi
commit
b77e844fc3
No account linked to committer's email address
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      api/db/services/document_service.py

+ 2
- 0
api/db/services/document_service.py Näytä tiedosto

@classmethod @classmethod
@DB.connection_context() @DB.connection_context()
def update_parser_config(cls, id, config): def update_parser_config(cls, id, config):
if not config:
return
e, d = cls.get_by_id(id) e, d = cls.get_by_id(id)
if not e: if not e:
raise LookupError(f"Document({id}) not found.") raise LookupError(f"Document({id}) not found.")

Loading…
Peruuta
Tallenna