mirror of
https://github.com/akuker/RASCSI.git
synced 2025-02-16 19:31:09 +00:00
Merge branch 'feature_backend_reserve' into fix_uploads
This commit is contained in:
commit
d6e01c7d8e
@ -158,7 +158,6 @@ def drive_create():
|
|||||||
vendor = request.form.get("vendor")
|
vendor = request.form.get("vendor")
|
||||||
product = request.form.get("product")
|
product = request.form.get("product")
|
||||||
revision = request.form.get("revision")
|
revision = request.form.get("revision")
|
||||||
blocks = request.form.get("blocks")
|
|
||||||
block_size = request.form.get("block_size")
|
block_size = request.form.get("block_size")
|
||||||
size = request.form.get("size")
|
size = request.form.get("size")
|
||||||
file_type = request.form.get("file_type")
|
file_type = request.form.get("file_type")
|
||||||
@ -177,8 +176,8 @@ def drive_create():
|
|||||||
# Creating the drive properties file
|
# Creating the drive properties file
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
file_name = str(Path(file_name).stem) + "." + PROPERTIES_SUFFIX
|
file_name = str(Path(file_name).stem) + "." + PROPERTIES_SUFFIX
|
||||||
properties = {"vendor": vendor, "product": product, "revision": revision, \
|
properties = {"vendor": vendor, "product": product, \
|
||||||
"blocks": blocks, "block_size": block_size}
|
"revision": revision, "block_size": block_size}
|
||||||
process = write_drive_properties(file_name, properties)
|
process = write_drive_properties(file_name, properties)
|
||||||
if process["status"] == True:
|
if process["status"] == True:
|
||||||
flash(f"Drive properties file {file_name} created")
|
flash(f"Drive properties file {file_name} created")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user