Fix domain #714
Annotations
4 errors
Tests / Tests (3.9, postgresql14):
invenio_accounts/datastore.py#L1
Black format check
--- /home/runner/work/invenio-accounts/invenio-accounts/invenio_accounts/datastore.py 2024-11-29 14:31:10.225960+00:00
+++ /home/runner/work/invenio-accounts/invenio-accounts/invenio_accounts/datastore.py 2024-11-29 14:33:41.163886+00:00
@@ -113,11 +113,11 @@
def find_domain(self, domain_or_id):
"""Find a domain by value or ID."""
if domain_or_id is None:
return None
-
+
if isinstance(domain_or_id, str):
if domain_or_id.isdigit():
clause = Domain.id == int(domain_or_id)
else:
clause = Domain.domain == domain_or_id
|
Tests / Tests (3.9, postgresql14)
Process completed with exit code 1.
|
Tests / Tests (3.12, postgresql14):
invenio_accounts/datastore.py#L1
Black format check
--- /home/runner/work/invenio-accounts/invenio-accounts/invenio_accounts/datastore.py 2024-11-29 14:31:11.843132+00:00
+++ /home/runner/work/invenio-accounts/invenio-accounts/invenio_accounts/datastore.py 2024-11-29 14:33:50.430535+00:00
@@ -113,11 +113,11 @@
def find_domain(self, domain_or_id):
"""Find a domain by value or ID."""
if domain_or_id is None:
return None
-
+
if isinstance(domain_or_id, str):
if domain_or_id.isdigit():
clause = Domain.id == int(domain_or_id)
else:
clause = Domain.domain == domain_or_id
|
Tests / Tests (3.12, postgresql14)
Process completed with exit code 1.
|