mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Task results popover
fix merge
This commit is contained in:
parent
5c0829b052
commit
3dc617277f
4 changed files with 32 additions and 8 deletions
|
|
@ -610,6 +610,14 @@ class TasksViewSerializer(serializers.ModelSerializer):
|
|||
# just file tasks, for now
|
||||
return "file"
|
||||
|
||||
result = serializers.SerializerMethodField()
|
||||
|
||||
def get_result(self, obj):
|
||||
result = ""
|
||||
if hasattr(obj, "attempted_task"):
|
||||
result = obj.attempted_task.result
|
||||
return result
|
||||
|
||||
status = serializers.SerializerMethodField()
|
||||
|
||||
def get_status(self, obj):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue