From 465672a903b9b1e9d1dd52f272426197c38665f3 Mon Sep 17 00:00:00 2001 From: Venkata Chandra Sekhar Nainala Date: Thu, 8 Aug 2024 10:29:10 +0200 Subject: [PATCH] fix: recent molecules filtering updates --- app/Livewire/RecentMolecules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/RecentMolecules.php b/app/Livewire/RecentMolecules.php index 845443ff..58b40596 100644 --- a/app/Livewire/RecentMolecules.php +++ b/app/Livewire/RecentMolecules.php @@ -17,7 +17,7 @@ public function render() { return view('livewire.recent-molecules', [ 'molecules' => Cache::rememberForever('molecules.recent', function () { - return Molecule::where('is_parent', false)->where('active', true)->where('name', '!=', null)->where('annotation_level', '=', 5)->orderByDesc('updated_at')->paginate($this->size); + return Molecule::where('is_parent', false)->where('active', true)->where('name', '!=', null)->where('annotation_level', '>=', 4)->orderByDesc('updated_at')->paginate($this->size); }), ]); }