Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
plugins
dropbox-v2
Commits
bbb398cc
Commit
bbb398cc
authored
1 year ago
by
Alp Deniz Ogut
Browse files
Options
Download
Email Patches
Plain Diff
Fix time import
parent
428b7048
testing
No related merge requests found
Pipeline
#15216
passed with stages
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dropbox_oauth/plugin.py
+3
-4
dropbox_oauth/plugin.py
with
3 additions
and
4 deletions
+3
-4
dropbox_oauth/plugin.py
+
3
-
4
View file @
bbb398cc
import
threading
import
time
import
json
from
concurrent.futures
import
Future
,
ThreadPoolExecutor
from
threading
import
Condition
,
Lock
...
...
@@ -25,7 +24,7 @@ import pyheif
import
piexif
import
os
import
dotenv
from
time
import
sleep
from
time
import
sleep
,
time
from
urllib.parse
import
parse_qs
dotenv
.
load_dotenv
()
...
...
@@ -75,7 +74,7 @@ def thread_safe(func):
def
run_delayed
(
func
,
delay
):
time
.
sleep
(
delay
)
sleep
(
delay
)
logger
.
info
(
f
"Running delayed function
{
func
}
"
)
return
func
()
...
...
@@ -260,7 +259,7 @@ class DropboxOauthPlugin(PluginBase):
except
Exception
as
e
:
self
.
set_run_status
(
RUN_FAILED
)
logger
.
exception
(
f
"Error while collecting data:
{
e
}
"
)
time
.
sleep
(
1
)
sleep
(
1
)
finally
:
self
.
wait_for_futures
()
self
.
join
()
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets