int ttl
This commit is contained in:
parent
f400eb6ab4
commit
28ae006b5d
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class RequestOTPSerializer(serializers.ModelSerializer):
|
|||
def get_ttl(self, obj: User):
|
||||
if obj.otp_expire > timezone.now():
|
||||
ttl = obj.otp_expire - timezone.now()
|
||||
result = ttl.total_seconds()
|
||||
result = int(ttl.total_seconds())
|
||||
|
||||
else:
|
||||
result = 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue