This commit is contained in:
Sayyid Hamid Mahdavi 2026-04-28 16:42:17 +03:30
parent f400eb6ab4
commit 28ae006b5d

View file

@ -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