Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/appstore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2020-01-13 01:41:13 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-01-05 14:31:32 +0300
commitcc2de251e329de0fe68e529cc8f23a8f388fb5a8 (patch)
tree97788d40316e66199172c3c46177215f3653d5cf
parent5c8808296ac53e93307010b045672df954036b9d (diff)
fix kwargs
Signed-off-by: Bernhard Posselt <dev@bernhard-posselt.com>
-rw-r--r--nextcloudappstore/api/v1/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nextcloudappstore/api/v1/views.py b/nextcloudappstore/api/v1/views.py
index 53c98ee748..2195f1ca80 100644
--- a/nextcloudappstore/api/v1/views.py
+++ b/nextcloudappstore/api/v1/views.py
@@ -239,7 +239,10 @@ class AppReleaseView(DestroyAPIView):
return status, app
def get_object(self):
- is_nightly = self.kwargs['nightly'] is not None
+ if 'nightly' in self.kwargs:
+ is_nightly = self.kwargs['nightly'] is not None
+ else:
+ is_nightly = False
release = AppRelease.objects.filter(version=self.kwargs['version'],
app__id=self.kwargs['app'],
is_nightly=is_nightly)