mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 13:38:03 +00:00
Fix situation where we get a float
This commit is contained in:
@@ -695,10 +695,10 @@ class CropPhotoView(TemplateView):
|
|||||||
'''
|
'''
|
||||||
photo = self.model.objects.get(pk=kwargs['pk'], user=request.user) # pylint: disable=no-member
|
photo = self.model.objects.get(pk=kwargs['pk'], user=request.user) # pylint: disable=no-member
|
||||||
dimensions = {
|
dimensions = {
|
||||||
'x': int(request.POST['x']),
|
'x': int(float(request.POST['x'])),
|
||||||
'y': int(request.POST['y']),
|
'y': int(float(request.POST['y'])),
|
||||||
'w': int(request.POST['w']),
|
'w': int(float(request.POST['w'])),
|
||||||
'h': int(request.POST['h'])
|
'h': int(float(request.POST['h'])),
|
||||||
}
|
}
|
||||||
email = openid = None
|
email = openid = None
|
||||||
if 'email' in request.POST:
|
if 'email' in request.POST:
|
||||||
|
|||||||
Reference in New Issue
Block a user