Smol fixes
This commit is contained in:
parent
954b33b2a6
commit
ce52897d30
|
@ -141,7 +141,7 @@ class Database(Profiler):
|
||||||
def pack_ip4address(address: str) -> Ip4Path:
|
def pack_ip4address(address: str) -> Ip4Path:
|
||||||
addr = 0
|
addr = 0
|
||||||
for split in address.split('.'):
|
for split in address.split('.'):
|
||||||
addr = addr << 4 + int(split)
|
addr = (addr << 8) + int(split)
|
||||||
return (addr, 32)
|
return (addr, 32)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -45,12 +45,9 @@ class Parser():
|
||||||
|
|
||||||
self.db.enter_step('register')
|
self.db.enter_step('register')
|
||||||
select, write = FUNCTION_MAP[rtype]
|
select, write = FUNCTION_MAP[rtype]
|
||||||
try:
|
|
||||||
for source in select(self.db, value):
|
for source in select(self.db, value):
|
||||||
# write(self.db, name, updated, source=source)
|
# write(self.db, name, updated, source=source)
|
||||||
write(self.db, name, updated)
|
write(self.db, name, updated)
|
||||||
except NotImplementedError:
|
|
||||||
return # DEBUG
|
|
||||||
|
|
||||||
def consume(self) -> None:
|
def consume(self) -> None:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
Loading…
Reference in a new issue