--> -->
 
 
UnboundLocalError
Python 3.7.4: /usr/local/bin/python3
Fri Apr 25 03:43:55 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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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': [['5053277000', '1868993000', '0.7050167224080267', '2', '-', '-'], ['5053277000', '1430700000', '0.6864989613704003', '13', '-', '-'], ['5053277000', '7041594000', '0.5982640448632284', '2', '-', '-'], ['5053277000', '5936250000', '0.2921425343949144', '3', '-', '-'], ['5053277000', '1549707000', '0.20332509977413968', '26', '-', '-'], ['5053277000', '1993801000', '0.1923078407529713', '3', '-', '-'], ['5053277000', '1864696000', '0.11866154939149291', '6', '-', '-'], ['5053277000', '1682270000', '0.11062360592460783', '3', '-', '-'], ['5053277000', '3424413000', '0.06847329168561976', '2', '-', '-'], ['5053277000', '5935105000', '0.06430070830703195', '11', '-', '-'], ['5053277000', '1273698000', '0.0595311402228112', '22', 'ADRIA POTOVANJA družba za upravljanje potovanj d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '18', '-', '-'], ['5053277000', '1430700000', '0.09698318162477182', '18', '-', '-'], ['5053277000', '1549707000', '0.08360619105583778', '18', '-', '-'], ['5053277000', '1868993000', '0.07049674029828241', '18', '-', '-'], ['5053277000', '1993801000', '0.06693010018784037', '18', '-', '-'], ['5053277000', '5554039000', '0.0616415069664123', '18', 'CLEANING družba za storitve in trgovino d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5053277000', '3852636000', '0.34673159554677047', '3', '-', '-'], ['5053277000', '1430700000', '0.06657885345580276', '2', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'181755': ['4292', '-0.4308811163382535', '5053277000', '5935105000', '50000.0', '77049.18', '71240000', '181755', '-', '-'], '312586': ['3906', '-0.38872145334401326', '5053277000', '3852636000', '220000.0', '325000.0', '45223800', '312586', '-', '-'], '371304': ['1954', '-0.24016950594571543', '5053277000', '1682270000', '60000.0', '76385.0', '79710000', '371304', '-', '-'], '402857': ['517', '-0.18036532135709038', '5053277000', '3852636000', '330000.0', '395700.0', '45223800', '402857', '-', '-'], '418926': ['5142', '-0.6150095247369337', '5053277000', '1993801000', '108000.0', '200135.0', '79710000', '418926', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'219892': ['9735', '10.48330607578907', '5053277000', '1430700000', '250000.0', '7', '60410000', '219892', '-', '-'], '259416': ['1348', '12.663813901367265', '5053277000', '3852636000', '316100.0', '1', '45223800', '259416', '-', '-'], '312586': ['1305', '12.691580464388798', '5053277000', '3852636000', '325000.0', '1', '45223800', '312586', '-', '-'], '402857': ['1079', '12.888411629900682', '5053277000', '3852636000', '395700.0', '1', '45223800', '402857', '-', '-'], '438338': ['3242', '11.792449357281983', '5053277000', '8380171000', '132250.0', '1', '92100000', '438338', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 5, '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>