Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
a808bfc6
Commit
a808bfc6
authored
May 22, 2015
by
Giorgos Korfiatis
Browse files
precise fetch name time stamp
parent
6f7facbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
agkyra/syncer/pithos_client.py
View file @
a808bfc6
...
...
@@ -16,7 +16,6 @@
from
functools
import
wraps
import
time
import
os
import
datetime
import
threading
import
logging
import
re
...
...
@@ -100,7 +99,7 @@ class PithosSourceHandle(object):
def
register_fetch_name
(
self
,
filename
):
db
=
self
.
get_db
()
f
=
utils
.
hash_string
(
filename
)
+
"_"
+
\
datetime
.
datetime
.
now
().
strftime
(
"%s"
)
utils
.
time_stamp
(
)
fetch_name
=
utils
.
join_path
(
self
.
cache_fetch_name
,
f
)
self
.
fetch_name
=
fetch_name
db
.
insert_cachename
(
fetch_name
,
self
.
SIGNATURE
,
filename
)
...
...
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