Skip to content

Commit

Permalink
fix: recent molecules filtering updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Aug 8, 2024
1 parent 9eb6684 commit 465672a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Livewire/RecentMolecules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}),
]);
}
Expand Down

0 comments on commit 465672a

Please sign in to comment.