fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix in librarian
[wolnelektury.git]
/
apps
/
waiter
/
views.py
diff --git
a/apps/waiter/views.py
b/apps/waiter/views.py
index
6e076b3
..
b951cc4
100644
(file)
--- a/
apps/waiter/views.py
+++ b/
apps/waiter/views.py
@@
-1,3
+1,7
@@
+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from os.path import join
from waiter.models import WaitedFile
from waiter.settings import WAITER_URL
from os.path import join
from waiter.models import WaitedFile
from waiter.settings import WAITER_URL
@@
-13,8
+17,6
@@
def wait(request, path):
else:
file_url = ""
waiting = get_object_or_404(WaitedFile, path=path)
else:
file_url = ""
waiting = get_object_or_404(WaitedFile, path=path)
- if waiting.is_stale():
- waiting = None
if request.is_ajax():
return HttpResponse(file_url)
if request.is_ajax():
return HttpResponse(file_url)