Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-core
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
Model registry
Operate
Environments
Monitor
Incidents
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
Platform
Development
swh-core
Commits
56038687
Verified
Commit
56038687
authored
1 month ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
db/db_utils: Fix black formatting
parent
dd256a69
No related branches found
No related tags found
1 merge request
!408
Apply swh-py-template v0.3.3 with copier
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/core/db/db_utils.py
+2
-2
2 additions, 2 deletions
swh/core/db/db_utils.py
with
2 additions
and
2 deletions
swh/core/db/db_utils.py
+
2
−
2
View file @
56038687
...
...
@@ -63,7 +63,7 @@ def jsonize(value):
@contextmanager
def
connect_to_conninfo
(
db_or_conninfo
:
Union
[
str
,
pgconnection
]
db_or_conninfo
:
Union
[
str
,
pgconnection
]
,
)
->
Iterator
[
pgconnection
]:
"""
Connect to the database passed as argument.
...
...
@@ -119,7 +119,7 @@ def swh_db_version(db_or_conninfo: Union[str, pgconnection]) -> Optional[int]:
def
swh_db_versions
(
db_or_conninfo
:
Union
[
str
,
pgconnection
]
db_or_conninfo
:
Union
[
str
,
pgconnection
]
,
)
->
Optional
[
List
[
Tuple
[
int
,
datetime
,
str
]]]:
"""
Retrieve the swh version history of the database.
...
...
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