Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
psotdb
Commits
cfea2f15
Commit
cfea2f15
authored
Aug 20, 2019
by
Rudel Fankep
Browse files
save_Remote namensänderung
parent
57834f7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
cfea2f15
...
...
@@ -227,10 +227,10 @@ def get_remote_metadata(args):
def
save_remote_metadata
(
args
,
metaliste
):
with
open
(
path_maker
(
get_local_databases_directory
(
args
),
'dbman_remote_metadata.json'
),
'w'
)
as
f
:
with
open
(
path_maker
(
get_local_databases_directory
(
args
),
'dbman_remote_metadata.json'
),
'w'
)
as
f
:
json
.
dump
(
metaliste
,
f
)
subprocess
.
run
([
'./upload_json.sh'
,
get_local_databases_directory
(
args
),
'dbman_remote_metadata.json'
,
get_remote_databases_directory
(
args
)])
os
.
remove
(
path_maker
(
get_local_databases_directory
(
args
),
'dbman_remote_metadata.json'
))
os
.
remove
(
path_maker
(
get_local_databases_directory
(
args
),
'dbman_remote_metadata.json'
))
def
get_remote_filename
(
args
,
version
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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