This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author Tomvictor | |
// [email protected] | |
// buildfromzero.com | |
// this code is only an demo for simple RF communication | |
// make suitable changes for your appication | |
// For full code visit https://github.com/Tomvictor/CC2500 | |
#include "include.h" | |
#include <msp430.h> | |
#include "lcd.h" | |
#include "lcd1.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def serchView(request): | |
query = request.GET.get("query") | |
print(query) | |
# queryset_list = super(PostListAPIView, self).get_queryset(*args, **kwargs) | |
queryset_list = Tutorial.objects.all() # filter(user=self.request.user) | |
if query: | |
queryset_list = queryset_list.filter( | |
Q(title__icontains=query) | | |
Q(content__icontains=query) | |
).distinct() |