Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
08474fac
Verified
Commit
08474fac
authored
Apr 27, 2019
by
Peter Stanko
Browse files
Fixed import error
parent
f00deeac
Pipeline
#31648
failed with stage
in 7 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
portal/tools/is_api_adapter.py
View file @
08474fac
...
...
@@ -5,7 +5,6 @@ import is_api
import
is_api.entities
from
flask
import
Flask
from
portal.service
import
errors
if
TYPE_CHECKING
:
from
portal.database
import
Course
,
Project
,
User
...
...
@@ -23,6 +22,7 @@ class IsApiWrapper:
if
fac_id
is
None
and
faculty_id
is
not
None
:
fac_id
=
int
(
faculty_id
)
except
Exception
as
ex
:
from
portal.service
import
errors
raise
errors
.
PortalServiceError
(
f
"Unable to extract faculty_id:
{
ex
}
"
)
self
.
_api
=
is_api
.
IsApiClient
(
domain
=
domain
,
faculty_id
=
fac_id
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment