fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e815007
)
Revert "change separators for easier escaping"
author
Jan Szejko
<janek37@gmail.com>
Mon, 1 Oct 2018 09:56:04 +0000
(11:56 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Mon, 1 Oct 2018 09:56:04 +0000
(11:56 +0200)
This reverts commit
cfbd468
src/api/handlers.py
patch
|
blob
|
history
diff --git
a/src/api/handlers.py
b/src/api/handlers.py
index
2e847c5
..
d32981e
100644
(file)
--- a/
src/api/handlers.py
+++ b/
src/api/handlers.py
@@
-33,7
+33,7
@@
from . import emitters # Register our emitters
API_BASE = WL_BASE = MEDIA_BASE = lazy(
lambda: u'https://' + Site.objects.get_current().domain, unicode)()
API_BASE = WL_BASE = MEDIA_BASE = lazy(
lambda: u'https://' + Site.objects.get_current().domain, unicode)()
-SORT_KEY_SEP = '
,
'
+SORT_KEY_SEP = '
$
'
category_singular = {
'authors': 'author',
category_singular = {
'authors': 'author',
@@
-378,16
+378,13
@@
class AnonFilterBooksHandler(AnonymousBooksHandler):
return None
def read(self, request):
return None
def read(self, request):
+ key_sep = '$'
search_string = request.GET.get('search')
is_lektura = self.parse_bool(request.GET.get('lektura'))
is_audiobook = self.parse_bool(request.GET.get('audiobook'))
preview = self.parse_bool(request.GET.get('preview'))
new_api = request.GET.get('new_api')
search_string = request.GET.get('search')
is_lektura = self.parse_bool(request.GET.get('lektura'))
is_audiobook = self.parse_bool(request.GET.get('audiobook'))
preview = self.parse_bool(request.GET.get('preview'))
new_api = request.GET.get('new_api')
- if new_api:
- key_sep = ','
- else:
- key_sep = '$'
after = request.GET.get('after')
count = int(request.GET.get('count', 50))
books = self.order_books(Book.objects.distinct(), new_api)
after = request.GET.get('after')
count = int(request.GET.get('count', 50))
books = self.order_books(Book.objects.distinct(), new_api)