Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
21cc4ffd
Commit
21cc4ffd
authored
Aug 21, 2015
by
Enrico Zini
Browse files
Fixed typos
parent
cc330eed
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/management/commands/process_mbox_stats.py
View file @
21cc4ffd
...
...
@@ -16,13 +16,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
django.core.management.base
import
BaseCommand
,
CommandError
import
django.db
from
django.conf
import
settings
import
optparse
import
sys
import
logging
from
backend
import
models
as
bmodels
from
backend
import
const
import
email.utils
import
mailbox
import
datetime
...
...
@@ -152,7 +150,7 @@ class Command(BaseCommand):
if
opts
[
"debug"
]:
level
=
logging
.
DEBUG
else
:
level
=
loggin
.
INFO
level
=
loggin
g
.
INFO
logging
.
basicConfig
(
level
=
level
,
stream
=
sys
.
stderr
,
format
=
FORMAT
)
...
...
@@ -170,7 +168,7 @@ class Command(BaseCommand):
interactions
.
generate_stats
(
key
)
log
.
info
(
"%s processed"
,
mailbox_file
)
else
:
log
.
warn
(
"skiped, no mailbox file defined"
)
log
.
warn
(
"skip
p
ed, no mailbox file defined"
)
interactions
.
generate_email_stats
()
interactions
.
export
(
os
.
path
.
join
(
settings
.
DATA_DIR
,
'mbox_stats.json'
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
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 comment