Skip to content
Snippets Groups Projects
Verified Commit 00f84797 authored by Georg Krause's avatar Georg Krause
Browse files

fix: Make imports actually work

parent 6d35d92e
No related branches found
No related tags found
1 merge request!43Apply patches from the server
Pipeline #26090 failed with stage
in 48 seconds
......@@ -6,7 +6,7 @@ import functools
import ssl
import sys
import output
from . import output
SSL_PROTOCOLS = (asyncio.sslproto.SSLProtocol,)
try:
......@@ -76,8 +76,8 @@ def async_command(f):
def conn_command(f):
async def wrapper(*args, **kwargs):
import db
import settings
from . import db
from . import settings
pool = await db.get_pool(settings.DB_DSN)
try:
......@@ -116,7 +116,7 @@ async def migrate(conn):
"""
Create database tables.
"""
import db
from . import db
await db.create(conn)
......@@ -128,7 +128,7 @@ async def clear(conn):
"""
Drop database tables.
"""
import db
from . import db
await db.clear(conn)
......@@ -158,10 +158,10 @@ async def poll(domain):
"""
Retrieve and store data for the specified domains.
"""
import crawler
import db
import settings
import worker
from . import crawler
from . import db
from . import settings
from . import worker
pool = await db.get_pool(settings.DB_DSN)
if not domain:
......@@ -194,8 +194,8 @@ async def crawl(domain, use_public, detail, passes, sort):
"""
Crawl the network starting from the given domain(s).
"""
import crawler
import settings
from . import crawler
from . import settings
kwargs = crawler.get_session_kwargs()
async with aiohttp.ClientSession(**kwargs) as session:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment