Skip to content

Commit

Permalink
Removed import to fix rtd build
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeger-j committed Nov 1, 2022
1 parent 2592c86 commit dda8728
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/lost/logic/file_man.py
Expand Up @@ -15,7 +15,7 @@
except:
print(traceback.format_exc())
import ast
from lost import settings
# from lost import settings
from lost.logic.crypt import decrypt_fs_connection

MEDIA_ROOT_PATH = "media/"
Expand Down Expand Up @@ -46,7 +46,8 @@ def chonkyfy(fs_list, root, fs):
'name':os.path.basename(el['name'])
}
try:
res['modDate'] = el['LastModified'].strftime(settings.STRF_TIME)
STRF_TIME = "%Y-%m-%dT%H:%M:%S.000Z"
res['modDate'] = el['LastModified'].strftime(STRF_TIME)
except:
pass
if el['type'] == 'file':
Expand Down

0 comments on commit dda8728

Please sign in to comment.