Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
network
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
9
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
network
Commits
00f84797
Verified
Commit
00f84797
authored
2 years ago
by
Georg Krause
Browse files
Options
Downloads
Patches
Plain Diff
fix: Make imports actually work
parent
6d35d92e
No related branches found
Branches containing commit
No related tags found
1 merge request
!43
Apply patches from the server
Pipeline
#26090
failed with stage
in 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
funkwhale_network/cli.py
+11
-11
11 additions, 11 deletions
funkwhale_network/cli.py
with
11 additions
and
11 deletions
funkwhale_network/cli.py
+
11
−
11
View file @
00f84797
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment