Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
IDATT2900-072
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Mattias Agentoft Eggen
IDATT2900-072
Commits
5bb12c08
Commit
5bb12c08
authored
3 years ago
by
Mattias Eggen
Browse files
Options
Downloads
Patches
Plain Diff
Renamed URL_builder
parent
cbd4bb4a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bbcli/services/contents_service.py
+2
-2
2 additions, 2 deletions
bbcli/services/contents_service.py
with
2 additions
and
2 deletions
bbcli/services/contents_service.py
+
2
−
2
View file @
5bb12c08
...
@@ -4,13 +4,13 @@ import os
...
@@ -4,13 +4,13 @@ import os
from
typing
import
Dict
,
Any
,
List
from
typing
import
Dict
,
Any
,
List
import
requests
import
requests
import
magic
import
magic
from
bbcli.utils.URL_builder
import
URL
B
uilder
from
bbcli.utils.URL_builder
import
URL
_b
uilder
from
bbcli.services.utils.content_builder
import
ContentBuilder
from
bbcli.services.utils.content_builder
import
ContentBuilder
from
bbcli.entities.content_builder_entitites
import
DateInterval
,
FileContent
,
GradingOptions
,
StandardOptions
,
FileOptions
,
WeblinkOptions
from
bbcli.entities.content_builder_entitites
import
DateInterval
,
FileContent
,
GradingOptions
,
StandardOptions
,
FileOptions
,
WeblinkOptions
from
bbcli.utils.utils
import
input_body
from
bbcli.utils.utils
import
input_body
import
click
import
click
url_builder
=
URL
B
uilder
()
url_builder
=
URL
_b
uilder
()
content_builder
=
ContentBuilder
()
content_builder
=
ContentBuilder
()
def
upload_attachment
(
session
:
requests
.
Session
,
course_id
:
str
,
content_id
:
str
,
file_dst
:
str
):
def
upload_attachment
(
session
:
requests
.
Session
,
course_id
:
str
,
content_id
:
str
,
file_dst
:
str
):
...
...
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