Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
1f0f1ade
authored
Sep 26, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding merge to tasks
parent
e1497ebf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
storagedriver.py
+7
-0
No files found.
storagedriver.py
View file @
1f0f1ade
...
@@ -26,6 +26,13 @@ def snapshot(json_data):
...
@@ -26,6 +26,13 @@ def snapshot(json_data):
@celery.task
()
@celery.task
()
def
merge
(
old_json
,
new_json
):
disk
=
Disk
.
import_from_json
(
old_json
)
new_disk
=
Disk
.
import_from_json
(
new_json
)
disk
.
merge
(
new_disk
)
@celery.task
()
def
get_disk
(
json_data
):
def
get_disk
(
json_data
):
disk
=
Disk
.
get
(
dir
=
json_data
[
'dir'
],
name
=
json_data
[
'name'
])
disk
=
Disk
.
get
(
dir
=
json_data
[
'dir'
],
name
=
json_data
[
'name'
])
return
disk
.
get_desc
()
return
disk
.
get_desc
()
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