Commit 75b5c91291fcbddc5feb5d9745f8950833021a00

Authored by Yurii Mykhalchuk
Committed by GitHub
2 parents 519fc9b3 5492f7a2

Merge pull request #320 from mykhaly/outdated_code

Finally remove outdated code!!!
@@ -494,29 +494,3 @@ def generate_test_bid_data_second_stage(tender_data, index='0'): @@ -494,29 +494,3 @@ def generate_test_bid_data_second_stage(tender_data, index='0'):
494 parameter = {"value": fake.random_element(elements=(0.05, 0.01, 0)), "code": feature.get('code', '')} 494 parameter = {"value": fake.random_element(elements=(0.05, 0.01, 0)), "code": feature.get('code', '')}
495 bid.data.parameters.append(parameter) 495 bid.data.parameters.append(parameter)
496 return bid 496 return bid
497 -  
498 -  
499 -# GUI Frontends common  
500 -def add_data_for_gui_frontends(tender_data):  
501 - now = get_now()  
502 - # tender_data.data.enquiryPeriod['startDate'] = (now + timedelta(minutes=2)).isoformat()  
503 - tender_data.data.enquiryPeriod['endDate'] = (now + timedelta(minutes=6)).isoformat()  
504 - tender_data.data.tenderPeriod['startDate'] = (now + timedelta(minutes=7)).isoformat()  
505 - tender_data.data.tenderPeriod['endDate'] = (now + timedelta(minutes=11)).isoformat()  
506 - return tender_data  
507 -  
508 -  
509 -def convert_date_to_slash_format(isodate):  
510 - iso_dt = parse_date(isodate)  
511 - date_string = iso_dt.strftime("%d/%m/%Y")  
512 - return date_string  
513 -  
514 -  
515 -def convert_datetime_to_dot_format(isodate):  
516 - iso_dt = parse_date(isodate)  
517 - day_string = iso_dt.strftime("%d.%m.%Y %H:%M")  
518 - return day_string  
519 -  
520 -  
521 -def local_path_to_file(file_name):  
522 - return os.path.join(os.path.dirname(__file__), 'documents', file_name)  
Please register or login to post a comment