--> -->
 
 
UnboundLocalError
Python 3.7.4: /usr/local/bin/python3
Fri Apr 25 00:27:09 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/local/apache2/htdocs/tbfy.web/index.py in <module>()
     18 # run script
     19 # run script
     20 
     21 pageObj = conf.Tbfy.TbfyController(conf)
=>   22 print(pageObj.getHTML())
builtin print = <built-in function print>, pageObj = <TbfyController.TbfyController object>, pageObj.getHTML = <bound method TbfyController.getHTML of <TbfyController.TbfyController object>>
 /usr/local/apache2/htdocs/tbfy.web/include/TbfyController.py in getHTML(self=<TbfyController.TbfyController object>)
     40             viewModel = CommonModel.CommonModel(self.confObj, self.getVars)
     41 
=>   42         self.html = self.frameHTML(viewModel.getView())
     43         return self.html
     44 
self = <TbfyController.TbfyController object>, self.html = 'Error: HTML not loaded.', self.frameHTML = <bound method TbfyController.frameHTML of <TbfyController.TbfyController object>>, viewModel = <models.OrganizationsModel.OrganizationsModel object>, viewModel.getView = <bound method OrganizationsModel.getView of <models.OrganizationsModel.OrganizationsModel object>>
 /usr/local/apache2/htdocs/tbfy.web/include/models/OrganizationsModel.py in getView(self=<models.OrganizationsModel.OrganizationsModel object>)
     28             self.contentHtml = self.getSearchOrgView()
     29         elif(query_a == "source_mju"):
=>   30             self.contentHtml = self.getMJUSourceOrgsView()
     31         else:
     32             self.contentHtml = self.conf.sharedMethods.getErrorView(self.conf)
self = <models.OrganizationsModel.OrganizationsModel object>, self.contentHtml = 'Error: SearchModel HTML nof found.', self.getMJUSourceOrgsView = <bound method OrganizationsModel.getMJUSourceOrg...ls.OrganizationsModel.OrganizationsModel object>>
 /usr/local/apache2/htdocs/tbfy.web/include/models/OrganizationsModel.py in getMJUSourceOrgsView(self=<models.OrganizationsModel.OrganizationsModel object>)
    875 
    876         content = self.conf.Template(filename='templates/orgs_overview_mju.tpl')
=>  877         return content.render(data=dict)
    878 
    879     def languageCorrections(self, string2Handle):
content = <mako.template.Template object>, content.render = <bound method Template.render of <mako.template.Template object>>, data undefined, dict = {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}
 /usr/local/lib/python3.7/site-packages/mako/template.py in render(self=<mako.template.Template object>, *args=(), **data={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})
    474 
    475         """
=>  476         return runtime._render(self, self.callable_, args, data)
    477 
    478     def render_unicode(self, *args, **data):
global runtime = <module 'mako.runtime' from '/usr/local/lib/python3.7/site-packages/mako/runtime.py'>, runtime._render = <function _render>, self = <mako.template.Template object>, self.callable_ = <function render_body>, args = (), data = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/lib/python3.7/site-packages/mako/runtime.py in _render(template=<mako.template.Template object>, callable_=<function render_body>, args=(), data={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}, as_unicode=False)
    881         context,
    882         *args,
=>  883         **_kwargs_for_callable(callable_, data)
    884     )
    885     return context._pop_buffer().getvalue()
global _kwargs_for_callable = <function _kwargs_for_callable>, callable_ = <function render_body>, data = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/lib/python3.7/site-packages/mako/runtime.py in _render_context(tmpl=<mako.template.Template object>, callable_=<function render_body>, context=<mako.runtime.Context object>, *args=(), **kwargs={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})
    918         # if main render method, call from the base of the inheritance stack
    919         (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
=>  920         _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
    921     else:
    922         # otherwise, call the actual rendering method specified
global _exec_template = <function _exec_template>, inherit = <function render_body>, lclcontext = <mako.runtime.Context object>, args = (), kwargs = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/lib/python3.7/site-packages/mako/runtime.py in _exec_template(callable_=<function render_body>, context=<mako.runtime.Context object>, args=(), kwargs={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})
    945             _render_error(template, context, e)
    946     else:
=>  947         callable_(context, *args, **kwargs)
    948 
    949 
callable_ = <function render_body>, context = <mako.runtime.Context object>, args = (), kwargs = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/apache2/htdocs/tbfy.web/templates_orgs_overview_mju_tpl in render_body(context=<mako.runtime.Context object>, **pageargs={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['1622935000', '5620210000', '0.9570516731819319', '2', '-', '-'], ['1622935000', '3298078000', '0.8510631960136', '2', '-', '-'], ['1622935000', '6015212000', '0.6829844186064197', '2', '-', '-'], ['1622935000', '6698344000', '0.5297653701642479', '3', '-', '-'], ['1622935000', 't733', '0.5109689213893968', '2', '-', '-'], ['1622935000', '5865883000', '0.39680416940433855', '3', '-', '-'], ['1622935000', '2256673000', '0.37253922922027805', '5', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '2146215000', '0.2708731653094666', '4', 'PM, poslovni mediji d.o.o.', '-'], ['1622935000', '8102511000', '0.26296393787838906', '2', '-', '-'], ['1622935000', '6931553000', '0.25774217851619813', '3', '-', '-'], ['1622935000', '1963414000', '0.07858009987776123', '5', 'INNOVATIF, družba za razvoj komunikacijskih konceptov, d.o.o.', '-'], ['1622935000', '5562325000', '0.05598448504205408', '20', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1622935000', '3612635000', '0.21910442921031706', '27', '-', '-'], ['1622935000', '3298078000', '0.10200341419374814', '27', '-', '-'], ['1622935000', '3477932000', '0.09632106628700535', '27', '-', '-'], ['1622935000', '2256673000', '0.08608322992515509', '27', 'OMD, družba za medijske komunikacije d.o.o.', '-'], ['1622935000', '5620210000', '0.07160166480196695', '27', '-', '-'], ['1622935000', '6128556000', '0.07116025812052221', '27', '-', '-'], ['1622935000', '5562325000', '0.06375245263335576', '27', 'ARCTUR Računalniški inženiring d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['1622935000', '3612635000', '0.21910442921031703', '2', '-', '-'], ['1622935000', '3477932000', '0.09632106628700533', '1', '-', '-'], ['1622935000', '3298078000', '0.0868113516880303', '2', '-', '-'], ['1622935000', '6128556000', '0.0711602581205222', '3', '-', '-'], ['1622935000', '5620210000', '0.0685264931013343', '6', '-', '-']]}, 'ratio-rev-per-employee-pos': {'buyers': {'261183': ['4454', '11.455601242090603', '1622935000', '3477932000', '188857.57', '2', '19200000', '261183', '-', '-'], '268675': ['3883', '11.60272047322763', '1622935000', '6128556000', '109395.0', '1', '77300000', '268675', '-', '-'], '325266': ['8755', '10.637456751616329', '1622935000', '2256673000', '125000.0', '3', '79341400', '325266', '-', 'OMD, družba za medijske komunikacije d.o.o.'], '333575': ['7697', '10.818777804096719', '1622935000', '8102511000', '49950.0', '1', '79800000', '333575', '-', '-'], '333840': ['6988', '10.931319677032278', '1622935000', 't733', '55900.0', '1', '79000000', '333840', '-', '-'], '344977': ['6361', '11.054059595957733', '1622935000', '3612635000', '189600.0', '3', '79211000', '344977', '-', '-'], '399217': ['5132', '11.289781926156019', '1622935000', '3612635000', '240000.0', '3', '79211000', '399217', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 4, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})

UnboundLocalError: local variable 'companyName' referenced before assignment
      args = ("local variable 'companyName' referenced before assignment",)
      with_traceback = <built-in method with_traceback of UnboundLocalError object>