Commit 62ce1b28f9945ee659d0a96503a3c2be71648751

Authored by selurvedu
1 parent 07a9e9a5

Add empty dict/Munch for tender_data into ${USERS}

This is needed for data caching.
... ... @@ -45,10 +45,13 @@ Set Suite Variable With Default Value
45 45 :FOR ${username} ${user_data} IN @{users_list}
46 46 \ log ${active_users}
47 47 \ log ${username}
  48 + \ ${munch_dict}= munch_dict data=${True}
  49 + \ Log Many ${munch_dict}
48 50 \ ${status}= Run Keyword And Return Status Dictionary Should Contain Value ${active_users} ${username}
49 51 \ ${keywords_file}= Get Broker Property By Username ${username} keywords_file
50 52 \ Run Keyword If '${status}' == 'True' Завантажуємо бібліотеку з реалізацією для майданчика ${keywords_file}
51 53 \ Run Keyword If '${status}' == 'True' Викликати для учасника ${username} Підготувати клієнт для користувача
  54 + \ Run Keyword If '${status}' == 'True' Set To Dictionary ${USERS.users['${username}']} tender_data ${munch_dict}
52 55
53 56
54 57 Get Broker Property
... ...
... ... @@ -233,6 +233,14 @@ def modify_tender(tender_id, access_token):
233 233 return data
234 234
235 235
  236 +def munch_dict(arg=None, data=False):
  237 + if arg is None:
  238 + arg = {}
  239 + if data:
  240 + arg['data'] = {}
  241 + return munchify(arg)
  242 +
  243 +
236 244 # GUI Frontends common
237 245 def add_data_for_gui_frontends(tender_data):
238 246 now = get_now()
... ...
Please register or login to post a comment