Browse Source

Smol fixes

newworkflow_packbefore
Geoffrey Frogeye 2 years ago
parent
commit
ce52897d30
Signed by: geoffrey GPG Key ID: D8A7ECA00A8CD3DD
  1. 2
      database.py
  2. 9
      feed_dns.py

2
database.py

@ -141,7 +141,7 @@ class Database(Profiler):
def pack_ip4address(address: str) -> Ip4Path:
addr = 0
for split in address.split('.'):
addr = addr << 4 + int(split)
addr = (addr << 8) + int(split)
return (addr, 32)
@staticmethod

9
feed_dns.py

@ -45,12 +45,9 @@ class Parser():
self.db.enter_step('register')
select, write = FUNCTION_MAP[rtype]
try:
for source in select(self.db, value):
# write(self.db, name, updated, source=source)
write(self.db, name, updated)
except NotImplementedError:
return # DEBUG
for source in select(self.db, value):
# write(self.db, name, updated, source=source)
write(self.db, name, updated)
def consume(self) -> None:
raise NotImplementedError

Loading…
Cancel
Save