Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
c38f331b
Commit
c38f331b
authored
Aug 13, 2018
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #575
Fix no pydrive dependency installed Fix sending email on python3
parent
fac0921a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
stats.html
cps/templates/stats.html
+1
-1
web.py
cps/web.py
+1
-1
worker.py
cps/worker.py
+5
-2
No files found.
cps/templates/stats.html
View file @
c38f331b
...
...
@@ -34,7 +34,7 @@
</tr>
</thead>
<tbody>
{% for library,version in versions.ite
rite
ms() %}
{% for library,version in versions.items() %}
<tr>
<th>
{{library}}
</th>
<td>
{{version}}
</td>
...
...
cps/web.py
View file @
c38f331b
...
...
@@ -2785,7 +2785,7 @@ def configuration_helper(origin):
app
.
logger
.
info
(
'Reboot required, restarting'
)
if
origin
:
success
=
True
if
is_gdrive_ready
():
if
is_gdrive_ready
()
and
gdrive_support
==
True
:
gdrivefolders
=
gdriveutils
.
listRootFolders
()
else
:
gdrivefolders
=
None
...
...
cps/worker.py
View file @
c38f331b
...
...
@@ -112,12 +112,15 @@ class email(smtplib.SMTP):
self
.
transferSize
=
len
(
strg
)
lock
.
release
()
for
i
in
range
(
0
,
self
.
transferSize
,
chunksize
):
self
.
sock
.
send
(
strg
[
i
:
i
+
chunksize
])
if
type
(
strg
)
==
bytes
:
self
.
sock
.
send
((
strg
[
i
:
i
+
chunksize
]))
else
:
self
.
sock
.
send
((
strg
[
i
:
i
+
chunksize
])
.
encode
(
'utf-8'
))
lock
.
acquire
()
self
.
progress
=
i
lock
.
release
()
else
:
self
.
sock
.
sendall
(
strg
)
self
.
sock
.
sendall
(
strg
.
encode
(
'utf-8'
)
)
except
socket
.
error
:
self
.
close
()
raise
smtplib
.
SMTPServerDisconnected
(
'Server not connected'
)
...
...
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