fix: linters

This commit is contained in:
Jannat Patel
2024-08-19 12:12:51 +05:30
parent a3b8ed8f91
commit 63f857b8fc
2 changed files with 8 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
/> />
<Button @click="() => (showForm = true)"> <Button @click="() => (showForm = true)">
<template #icon> <template #icon>
<Plus class="h-3 w-3 stroke-1.5" /> <Plus class="h-3 w-3 stroke-1.5" />
</template> </template>
</Button> </Button>
</div> </div>
@@ -72,7 +72,7 @@
<div v-if="hasNextPage" class="flex justify-center"> <div v-if="hasNextPage" class="flex justify-center">
<Button variant="solid" @click="members.reload()"> <Button variant="solid" @click="members.reload()">
<template #prefix> <template #prefix>
<RefreshCw class="h-3 w-3 stroke-1.5" /> <RefreshCw class="h-3 w-3 stroke-1.5" />
</template> </template>
{{ __('Load More') }} {{ __('Load More') }}
</Button> </Button>
@@ -83,7 +83,7 @@
import { createResource, Avatar, Button, FormControl } from 'frappe-ui' import { createResource, Avatar, Button, FormControl } from 'frappe-ui'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { ref, watch, reactive } from 'vue' import { ref, watch, reactive } from 'vue'
import { RefreshCw, Plus } from "lucide-vue-next" import { RefreshCw, Plus } from 'lucide-vue-next'
const router = useRouter() const router = useRouter()
const show = defineModel('show') const show = defineModel('show')

View File

@@ -566,10 +566,10 @@ def get_categories(doctype, filters):
@frappe.whitelist() @frappe.whitelist()
def get_members(start=0, search=""): def get_members(start=0, search=""):
""" Get members for the given search term and start index. """Get members for the given search term and start index.
Args: start (int): Start index for the query. Args: start (int): Start index for the query.
search (str): Search term to filter the results. search (str): Search term to filter the results.
Returns: List of members. Returns: List of members.
""" """
filters = {"enabled": 1, "name": ["not in", ["Administrator", "Guest"]]} filters = {"enabled": 1, "name": ["not in", ["Administrator", "Guest"]]}