A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
fix result on empty task
Michael Shamoon71b34aa3bd52
diff --git a/src/documents/serialisers.py b/src/documents/serialisers.pyindex 273381106..494efb5c4 100644--- a/src/documents/serialisers.py+++ b/src/documents/serialisers.py@@ -614,7 +614,7 @@ class TasksViewSerializer(serializers.ModelSerializer):def get_result(self, obj):result = ""- if hasattr(obj, "attempted_task"):+ if hasattr(obj, "attempted_task") and obj.attempted_task:result = obj.attempted_task.resultreturn result