File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ def entries_all(request):
77
77
)
78
78
return JsonResponse (serializer .data , safe = False )
79
79
80
+
80
81
def search_entries (request ):
81
82
"""
82
83
Returns every entry matching the conditions given in the query
@@ -93,6 +94,7 @@ def search_entries(request):
93
94
platform = request .GET .get ("platform" , "" )
94
95
text_query = request .GET .get ("q" , "" )
95
96
random_query = request .GET .get ("random" , False )
97
+ thirdparty = request .GET .get ("thirdparty" , "" )
96
98
97
99
# Pagination
98
100
# Request a specific page
@@ -113,6 +115,11 @@ def search_entries(request):
113
115
# elif num_elements >= 30:
114
116
# num_elements = 30
115
117
118
+ # TODO: Implement filtering on the new schema field for distribution terms
119
+ # to third parties. For now, make sameboy return empty
120
+ if thirdparty == "sameboy" :
121
+ entries = []
122
+
116
123
# sort and order
117
124
if sort_by_param :
118
125
entries = sort_and_order (entries , order_by_param , sort_by_param )
You can’t perform that action at this time.
0 commit comments