def rpc_unwatch(request): groups = request.POST.get('group', []) if not isinstance(groups, (list, tuple)): groups = [groups] for group in groups: Group.update(watch=False).where(Group.name == group).execute() return ''
def rpc_unwatch(request): groups = request.POST.get('group', []) if not isinstance(groups, (list, tuple)): groups = [ groups ] for group in groups: Group.update(watch=False).where(Group.name == group).execute() return ''