Commit 4b53e454 by aagusti

perbaikan procedure date_from_str

1 parent ca590a20
...@@ -190,6 +190,9 @@ def create_now(): ...@@ -190,6 +190,9 @@ def create_now():
def date_from_str(value): def date_from_str(value):
if type(value) != str:
return value
separator = None separator = None
value = value.split()[0] # dd-mm-yyyy HH:MM:SS value = value.split()[0] # dd-mm-yyyy HH:MM:SS
for s in ['-', '/', '.']: for s in ['-', '/', '.']:
...@@ -458,7 +461,7 @@ class Upload(SaveFile): ...@@ -458,7 +461,7 @@ class Upload(SaveFile):
fullpath = os.path.join(self.dir_path, filename, ext) fullpath = os.path.join(self.dir_path, filename, ext)
else: else:
fullpath = self.create_fullpath(ext) fullpath = self.create_fullpath(ext)
log.debug(f"Saving file to: {fullpath}")
output_file = open(fullpath, 'wb') output_file = open(fullpath, 'wb')
input_file.seek(0) input_file.seek(0)
while True: while True:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!