Example #1
0
    def __flush_insert_event__(cls, target):
        super().__flush_insert_event__(target)

        if current_app.config["USE_ES"]:
            from flaskshop.public.search import Item

            Item.add(target)
Example #2
0
    def __flush_insert_event__(cls, target):
        from flaskshop.public.search import Item

        super().__flush_insert_event__(target)
        Item.add(target)