Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
94c16027
authored
2020-12-08 18:01:42 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix path
1 parent
d1c086a8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
src/apps/doc/management/commands/bs_statistics.py
src/apps/doc/management/commands/license_statistics.py
src/apps/doc/management/commands/bs_statistics.py
View file @
94c1602
...
...
@@ -35,7 +35,11 @@ class Command(BaseCommand, LoggerMixin):
else
:
date_str
=
date
.
strftime
(
'
%
Y-
%
m-
%
d'
)
excel_path
=
os
.
path
.
join
(
conf
.
LOG_DIR
,
'bs_{0}.xlsx'
.
format
(
date_str
))
excel_dir
=
os
.
path
.
join
(
conf
.
DATA_DIR
,
'AFC'
,
'Logs'
)
if
not
os
.
path
.
exists
(
excel_dir
):
print
(
'excel dir not exists'
)
return
excel_path
=
os
.
path
.
join
(
excel_dir
,
'bs_{0}.xlsx'
.
format
(
date_str
))
log_path
=
os
.
path
.
join
(
conf
.
LOG_DIR
,
'bs.log.{0}'
.
format
(
date_str
))
if
not
os
.
path
.
exists
(
log_path
):
print
(
'log_path not exists'
)
...
...
src/apps/doc/management/commands/license_statistics.py
View file @
94c1602
...
...
@@ -70,7 +70,11 @@ class Command(BaseCommand, LoggerMixin):
else
:
date_str
=
date
.
strftime
(
'
%
Y-
%
m-
%
d'
)
excel_path
=
os
.
path
.
join
(
conf
.
LOG_DIR
,
'license_{0}.xlsx'
.
format
(
date_str
))
excel_dir
=
os
.
path
.
join
(
conf
.
DATA_DIR
,
'AFC'
,
'Logs'
)
if
not
os
.
path
.
exists
(
excel_dir
):
print
(
'excel dir not exists'
)
return
excel_path
=
os
.
path
.
join
(
excel_dir
,
'license_{0}.xlsx'
.
format
(
date_str
))
log_path
=
os
.
path
.
join
(
conf
.
LOG_DIR
,
'license.log.{0}'
.
format
(
date_str
))
if
not
os
.
path
.
exists
(
log_path
):
print
(
'log_path not exists'
)
...
...
Write
Preview
Styling with
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