Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
network
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
b8197100
Commit
b8197100
authored
2 months ago
by
Petitminion
Browse files
Options
Downloads
Patches
Plain Diff
fix last domain query
parent
dfea89a1
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#37647
passed with warnings
2 months ago
Stage: lint
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
funkwhale_network/db.py
+2
-2
2 additions, 2 deletions
funkwhale_network/db.py
with
2 additions
and
2 deletions
funkwhale_network/db.py
+
2
−
2
View file @
b8197100
...
...
@@ -193,8 +193,8 @@ class DB:
)
as
cursor
:
# await cursor.execute("SELECT name FROM domains")
await
cursor
.
execute
(
"
SELECT domain, M
IN
(time) AS
earlie
st_time FROM checks
\
GROUP BY domain
ORDER BY
earlie
st_time ASC LIMIT 20;
"
"
SELECT domain, M
AX
(time) AS
la
st_time FROM checks
GROUP BY domain
\
ORDER BY
la
st_time ASC LIMIT 20;
"
)
domains
=
list
(
await
cursor
.
fetchall
())
domains
=
[{
"
name
"
:
row
[
"
domain
"
]}
for
row
in
domains
]
...
...
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