diff options
Diffstat (limited to 'python/task_server')
| -rw-r--r-- | python/task_server/globeop.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/task_server/globeop.py b/python/task_server/globeop.py index d252d415..0c5a82a9 100644 --- a/python/task_server/globeop.py +++ b/python/task_server/globeop.py @@ -113,8 +113,8 @@ def upload_data(startdate): file_to_upload = filelist[0][0]
newfile_to_upload = file_to_upload
if workdate < startdate:
- newfile_to_upload = "securitiesNpv{0}.csv".format(
- datetime.datetime.strftime(datetime.datetime.today(), "%Y%m%d_%H%M%S"))
+ newfile_to_upload = "securitiesNpv{%Y%m%d_%H%M%S}.csv".\
+ format(datetime.datetime.today())
# due to the way the drive is mounted, we get an exception when copy
# tries to change permissions
try:
|
