Commit b36ca1a8d2e9a90afb3070d816ea3020f790ba52

Authored by selurvedu
1 parent 7fae60a0

Split service_keywords.py (Netcast)

@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 Library Selenium2Screenshots 2 Library Selenium2Screenshots
3 Library String 3 Library String
4 Library DateTime 4 Library DateTime
  5 +Library netcast_service.py
5 6
6 *** Variables *** 7 *** Variables ***
7 ${locator.tenderId} xpath=//td[./text()='TenderID']/following-sibling::td[1] 8 ${locator.tenderId} xpath=//td[./text()='TenderID']/following-sibling::td[1]
  1 +from datetime import datetime, timedelta
  2 +
  3 +
  4 +def subtract_from_time(date_time, subtr_min, subtr_sec):
  5 + sub = datetime.strptime(date_time, "%d.%m.%Y %H:%M")
  6 + sub = (sub - timedelta(minutes=int(subtr_min),
  7 + seconds=int(subtr_sec))).isoformat()
  8 + return sub
@@ -224,8 +224,3 @@ def convert_time_to_etender_format(isodate): @@ -224,8 +224,3 @@ def convert_time_to_etender_format(isodate):
224 def procuringEntity_name(INITIAL_TENDER_DATA): 224 def procuringEntity_name(INITIAL_TENDER_DATA):
225 INITIAL_TENDER_DATA.data.procuringEntity['name'] = u"Повна назва невідомо чого" 225 INITIAL_TENDER_DATA.data.procuringEntity['name'] = u"Повна назва невідомо чого"
226 return INITIAL_TENDER_DATA 226 return INITIAL_TENDER_DATA
227 -  
228 -def subtract_from_time(date_time,substr_min,substr_sec):  
229 - now = datetime.strptime(date_time,"%d.%m.%Y %H:%M")  
230 - now = (now - timedelta(minutes=int(substr_min), seconds = int (substr_sec) )).isoformat()  
231 - return now  
Please register or login to post a comment