Commit 13dfc4e08fcf684f838facab26012bb36eb22d7d

Authored by OrysiaDrabych
1 parent f5b198a2

Delete duplicate get_id_from_doc_name function

@@ -508,7 +508,7 @@ Resource resource.robot @@ -508,7 +508,7 @@ Resource resource.robot
508 508
509 Додати документацію до зміни договору 509 Додати документацію до зміни договору
510 ${file_path} ${file_name} ${file_content}= create_fake_doc 510 ${file_path} ${file_name} ${file_content}= create_fake_doc
511 - ${doc_id}= get_id_from_doc_name ${file_name} 511 + ${doc_id}= get_id_from_string ${file_name}
512 ${doc}= Create Dictionary 512 ${doc}= Create Dictionary
513 ... id=${doc_id} 513 ... id=${doc_id}
514 ... name=${file_name} 514 ... name=${file_name}
@@ -520,7 +520,7 @@ Resource resource.robot @@ -520,7 +520,7 @@ Resource resource.robot
520 520
521 Додати документацію до договору 521 Додати документацію до договору
522 ${file_path} ${file_name} ${file_content}= create_fake_doc 522 ${file_path} ${file_name} ${file_content}= create_fake_doc
523 - ${doc_id}= get_id_from_doc_name ${file_name} 523 + ${doc_id}= get_id_from_string ${file_name}
524 ${doc}= Create Dictionary 524 ${doc}= Create Dictionary
525 ... id=${doc_id} 525 ... id=${doc_id}
526 ... name=${file_name} 526 ... name=${file_name}
@@ -478,10 +478,6 @@ def get_object_index_by_id(data, object_id): @@ -478,10 +478,6 @@ def get_object_index_by_id(data, object_id):
478 return index 478 return index
479 479
480 480
481 -def get_id_from_doc_name(name):  
482 - return re.match(r'd\-[0-9a-fA-F]{8}', name).group(0)  
483 -  
484 -  
485 def get_object_by_id(data, given_object_id, slice_element, object_id): 481 def get_object_by_id(data, given_object_id, slice_element, object_id):
486 """ 482 """
487 data: object to slice 483 data: object to slice
Please register or login to post a comment