Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!14
Asynchronní joby
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Asynchronní joby
mj/jobs
into
devel
Overview
0
Commits
12
Changes
1
Merged
Martin Mareš
requested to merge
mj/jobs
into
devel
4 years ago
Overview
0
Commits
12
Changes
1
0
0
Merge request reports
Viewing commit
9287532e
Show latest version
1 file
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9287532e
mo: fixup init_standalone()
· 9287532e
Martin Mareš
authored
4 years ago
mo/util.py
+
2
−
0
View file @ 9287532e
Edit in single-file editor
Open in Web IDE
Show full file
@@ -5,6 +5,7 @@ import datetime
import
dateutil.tz
import
email.message
import
email.headerregistry
import
locale
import
logging
import
re
import
subprocess
@@ -34,6 +35,7 @@ def init_standalone():
"""
Společná inicializační funkce pro samostatné programy nezávislé na webu.
"""
logging
.
basicConfig
(
format
=
'
%(asctime)-15s %(levelname)-5.5s %(message)s
'
)
mo
.
now
=
get_now
()
locale
.
setlocale
(
locale
.
LC_COLLATE
,
'
cs_CZ.UTF-8
'
)
def
log
(
type
:
db
.
LogType
,
what
:
int
,
details
:
Any
):
Loading