add rancher dhi stat

This commit is contained in:
2025-09-20 12:52:49 +03:30
parent e8f4c77e9f
commit 8cfe3888f1
2 changed files with 19 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ def get_rancher_statistics(rancher: Rancher = None) -> typing.Any:
camel_count=Count('id', filter=Q(type__name='شتر')),
horse_count=Count('id', filter=Q(type__name='بز')),
)
stats.update({'dhi_stat': rancher.dhi_state}) # add rancher dhi stat to dict result
return stats