Commit d322af95908170daa3c12c0d6ebbad993ddc3d43
1 parent
a4a329f1
fixed brokers tabs and delete prom in service_keywords
Showing
2 changed files
with
1 additions
and
39 deletions
@@ -203,41 +203,3 @@ def convert_datetime_to_dot_format(isodate): | @@ -203,41 +203,3 @@ def convert_datetime_to_dot_format(isodate): | ||
203 | 203 | ||
204 | def local_path_to_file(file_name): | 204 | def local_path_to_file(file_name): |
205 | return os.path.join(os.path.dirname(__file__), 'documents', file_name) | 205 | return os.path.join(os.path.dirname(__file__), 'documents', file_name) |
206 | - | ||
207 | - | ||
208 | -## Prom.ua | ||
209 | -def get_all_prom_dates(period_interval=31): | ||
210 | - now = datetime.now() | ||
211 | - return { | ||
212 | - 'EndPeriod': (now + timedelta(minutes=8)).strftime("%d.%m.%Y %H:%M"), | ||
213 | - 'StartDate': (now + timedelta(minutes=8)).strftime("%d.%m.%Y %H:%M"), | ||
214 | - 'EndDate': (now + timedelta(minutes=(8 + period_interval))).strftime("%d.%m.%Y %H:%M"), | ||
215 | - } | ||
216 | - | ||
217 | -def convert_date_to_prom_tender(isodate): | ||
218 | - first_iso = datetime.strptime(isodate, "%d.%m.%y").isoformat() | ||
219 | - return first_iso | ||
220 | - | ||
221 | - | ||
222 | -def convert_date_to_prom_tender_startdate(isodate): | ||
223 | - first_date = isodate.split(' - ')[0] | ||
224 | - first_iso = datetime.strptime(first_date, "%d.%m.%y %H:%M").isoformat() | ||
225 | - return first_iso | ||
226 | - | ||
227 | -def convert_date_to_prom_tender_enddate(isodate): | ||
228 | - second_date = isodate.split(' - ')[1] | ||
229 | - second_iso = datetime.strptime(second_date, "%d.%m.%y %H:%M").isoformat() | ||
230 | - return second_iso | ||
231 | - | ||
232 | - | ||
233 | -def procuringEntity_name_prom(INITIAL_TENDER_DATA): | ||
234 | - INITIAL_TENDER_DATA.data.procuringEntity['name'] = u"Test_company_from_Prozorro" | ||
235 | - return INITIAL_TENDER_DATA | ||
236 | - | ||
237 | - | ||
238 | -def convert_prom_string_to_common_string(string): | ||
239 | - return { | ||
240 | - u"Украина": u"Україна", | ||
241 | - u"Киевская область": u"м. Київ", | ||
242 | - u"килограммы": u"кілограм", | ||
243 | - }.get(string, string) |
Please
register
or
login
to post a comment