Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4b53e454
authored
Feb 28, 2023
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan procedure date_from_str
1 parent
ca590a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
opensipkd/tools/__init__.py
opensipkd/tools/__init__.py
View file @
4b53e45
...
...
@@ -190,6 +190,9 @@ def create_now():
def
date_from_str
(
value
):
if
type
(
value
)
!=
str
:
return
value
separator
=
None
value
=
value
.
split
()[
0
]
# dd-mm-yyyy HH:MM:SS
for
s
in
[
'-'
,
'/'
,
'.'
]:
...
...
@@ -458,7 +461,7 @@ class Upload(SaveFile):
fullpath
=
os
.
path
.
join
(
self
.
dir_path
,
filename
,
ext
)
else
:
fullpath
=
self
.
create_fullpath
(
ext
)
log
.
debug
(
f
"Saving file to: {fullpath}"
)
output_file
=
open
(
fullpath
,
'wb'
)
input_file
.
seek
(
0
)
while
True
:
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment