mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-26 18:14:37 -05:00
Compare commits
No commits in common. "1b3a91f63fa8c8c320df3319370b380a8afeb3a2" and "7236b8b682d22969ef0f88a779f284998c95e856" have entirely different histories.
1b3a91f63f
...
7236b8b682
@ -586,8 +586,6 @@ export class FilterableDropdownComponent
|
|||||||
this.selectionModel.reset()
|
this.selectionModel.reset()
|
||||||
this.modelIsDirty = false
|
this.modelIsDirty = false
|
||||||
}
|
}
|
||||||
this.selectionModel.singleSelect =
|
|
||||||
this.editing && !this.selectionModel.manyToOne
|
|
||||||
this.opened.next(this)
|
this.opened.next(this)
|
||||||
} else {
|
} else {
|
||||||
if (this.creating) {
|
if (this.creating) {
|
||||||
|
@ -123,15 +123,14 @@ def train_classifier(*, scheduled=True):
|
|||||||
task.result = "Training data unchanged"
|
task.result = "Training data unchanged"
|
||||||
|
|
||||||
task.status = states.SUCCESS
|
task.status = states.SUCCESS
|
||||||
|
task.date_done = timezone.now()
|
||||||
|
task.save(update_fields=["status", "result", "date_done"])
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning("Classifier error: " + str(e))
|
logger.warning("Classifier error: " + str(e))
|
||||||
task.status = states.FAILURE
|
task.status = states.FAILURE
|
||||||
task.result = str(e)
|
task.result = str(e)
|
||||||
|
|
||||||
task.date_done = timezone.now()
|
|
||||||
task.save(update_fields=["status", "result", "date_done"])
|
|
||||||
|
|
||||||
|
|
||||||
@shared_task(bind=True)
|
@shared_task(bind=True)
|
||||||
def consume_file(
|
def consume_file(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user