Browse Source

Fix type error

devel
bashmak 8 years ago
parent
commit
3b11532c37
  1. 4
      agent/structs.py

4
agent/structs.py

@ -93,8 +93,8 @@ class TariffStruct(BaseStruct):
# Абонент из базы
class AbonStruct(BaseStruct):
def __init__(self, uid=None, ip=None, tariff=None, is_active=True):
self.uid = int(uid)
def __init__(self, uid=0, ip=None, tariff=None, is_active=True):
self.uid = int(uid or 0)
self.ip = IpStruct(ip)
self.tariff = tariff
self.is_active = is_active

Loading…
Cancel
Save