Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
mutalyzer
Commits
bef3e565
Commit
bef3e565
authored
11 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Fix runtime errors in cache sync
parent
7f2054ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mutalyzer/entrypoints/admin.py
+1
-0
1 addition, 0 deletions
mutalyzer/entrypoints/admin.py
mutalyzer/sync.py
+3
-1
3 additions, 1 deletion
mutalyzer/sync.py
with
4 additions
and
1 deletion
mutalyzer/entrypoints/admin.py
+
1
−
0
View file @
bef3e565
...
...
@@ -294,6 +294,7 @@ def main():
'
-H
'
,
'
--history
'
,
metavar
=
'
DAYS
'
,
dest
=
'
history
'
,
type
=
int
,
default
=
7
,
help
=
'
number of days to go back in the remote cache
'
'
(default: 7)
'
)
p
.
set_defaults
(
func
=
sync_cache
)
# Subparser 'setup-database'.
p
=
subparsers
.
add_parser
(
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/sync.py
+
3
−
1
View file @
bef3e565
...
...
@@ -5,10 +5,12 @@ Module for synchronizing the database with other Mutalyzer instances.
from
mutalyzer.util
import
monkey_patch_suds
;
monkey_patch_suds
()
from
datetime
import
datetime
,
timedelta
import
os
import
re
from
datetime
import
datetime
,
timedelta
import
urllib2
from
sqlalchemy.orm.exc
import
NoResultFound
from
suds.client
import
Client
from
mutalyzer.config
import
settings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment