Commit 3b16d357830a9bdbf7e13c73fa0ea13b3aaa4457
1 parent
fc11aa67
Rename tender_data local variables
They were named just like the global variable, though they are local in corresponding functions.
Showing
3 changed files
with
12 additions
and
12 deletions
... | ... | @@ -19,6 +19,6 @@ def convert_time_to_etender_format(isodate): |
19 | 19 | return time_string |
20 | 20 | |
21 | 21 | |
22 | -def procuring_entity_name(INITIAL_TENDER_DATA): | |
23 | - INITIAL_TENDER_DATA.data.procuringEntity['name'] = u"Повна назва невідомо чого" | |
24 | - return INITIAL_TENDER_DATA | |
22 | +def procuring_entity_name(tender_data): | |
23 | + tender_data.data.procuringEntity['name'] = u"Повна назва невідомо чого" | |
24 | + return tender_data | ... | ... |
... | ... | @@ -16,6 +16,6 @@ def newtend_date_picker_index(isodate): |
16 | 16 | return mod + iso_dt.day |
17 | 17 | |
18 | 18 | |
19 | -def update_data_for_newtend(INITIAL_TENDER_DATA): | |
20 | - INITIAL_TENDER_DATA.data.procuringEntity['name'] = u"openprocurement" | |
21 | - return INITIAL_TENDER_DATA | |
19 | +def update_data_for_newtend(tender_data): | |
20 | + tender_data.data.procuringEntity['name'] = u"openprocurement" | |
21 | + return tender_data | ... | ... |
... | ... | @@ -181,13 +181,13 @@ def wait_to_date(date_stamp): |
181 | 181 | |
182 | 182 | |
183 | 183 | # GUI Frontends common |
184 | -def add_data_for_gui_frontends(INITIAL_TENDER_DATA): | |
184 | +def add_data_for_gui_frontends(tender_data): | |
185 | 185 | now = datetime.now() |
186 | - # INITIAL_TENDER_DATA.data.enquiryPeriod['startDate'] = (now + timedelta(minutes=2)).isoformat() | |
187 | - INITIAL_TENDER_DATA.data.enquiryPeriod['endDate'] = (now + timedelta(minutes=6)).isoformat() | |
188 | - INITIAL_TENDER_DATA.data.tenderPeriod['startDate'] = (now + timedelta(minutes=7)).isoformat() | |
189 | - INITIAL_TENDER_DATA.data.tenderPeriod['endDate'] = (now + timedelta(minutes=11)).isoformat() | |
190 | - return INITIAL_TENDER_DATA | |
186 | + # tender_data.data.enquiryPeriod['startDate'] = (now + timedelta(minutes=2)).isoformat() | |
187 | + tender_data.data.enquiryPeriod['endDate'] = (now + timedelta(minutes=6)).isoformat() | |
188 | + tender_data.data.tenderPeriod['startDate'] = (now + timedelta(minutes=7)).isoformat() | |
189 | + tender_data.data.tenderPeriod['endDate'] = (now + timedelta(minutes=11)).isoformat() | |
190 | + return tender_data | |
191 | 191 | |
192 | 192 | |
193 | 193 | def convert_date_to_slash_format(isodate): | ... | ... |
Please
register
or
login
to post a comment