Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
yaq
yaqd-gdrive
Commits
a9665787
Commit
a9665787
authored
Jul 30, 2020
by
Kyle Sunden
Committed by
Blaise Thompson
Jul 30, 2020
Browse files
Fix file_id variable name in format strings
parent
ca9e1112
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
CHANGELOG.md
CHANGELOG.md
+1
-0
yaqd_gdrive/_gdrive.py
yaqd_gdrive/_gdrive.py
+3
-3
No files found.
CHANGELOG.md
View file @
a9665787
...
...
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
### Fixed
-
Signature of
`update_file`
-
Variable name
`file_id`
when formatting urls
## [2020.05.0]
...
...
yaqd_gdrive/_gdrive.py
View file @
a9665787
...
...
@@ -167,7 +167,7 @@ class GDrive(yaqd_core.Base):
with
open
(
file_
,
"rb"
)
as
f
:
mpwriter
.
append
(
f
.
read
())
async
with
self
.
_http_session
.
patch
(
self
.
_update_file_url
.
format
(
file
I
d
=
id
),
self
.
_update_file_url
.
format
(
file
_i
d
=
id
),
headers
=
self
.
_auth_header
,
params
=
{
"uploadType"
:
"multipart"
},
data
=
mpwriter
,
...
...
@@ -286,10 +286,10 @@ class GDrive(yaqd_core.Base):
return
drive_id
def
id_to_open_url
(
self
,
id
):
return
self
.
_open_url
.
format
(
file
I
d
=
self
.
_state
[
"id_mapping"
].
get
(
id
,
id
))
return
self
.
_open_url
.
format
(
file
_i
d
=
self
.
_state
[
"id_mapping"
].
get
(
id
,
id
))
def
id_to_download_url
(
self
,
id
):
return
self
.
_download_url
.
format
(
file
I
d
=
self
.
_state
[
"id_mapping"
].
get
(
id
,
id
))
return
self
.
_download_url
.
format
(
file
_i
d
=
self
.
_state
[
"id_mapping"
].
get
(
id
,
id
))
def
create_folder
(
self
,
path
,
parent_id
=
None
,
id
=
None
):
path
=
pathlib
.
Path
(
path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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