--> -->
 
 
UnboundLocalError
Python 3.7.4: /usr/local/bin/python3
Thu Apr 24 15:43:02 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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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': [['1332813054', '8335729000', '0.8969191356068421', '2', '-', '-'], ['1332813054', '3525074000', '0.8279184372222622', '3', '-', '-'], ['1332813054', '3154505000', '0.47373214884306786', '3', '-', '-'], ['1332813054', '5488338000', '0.4151671813622256', '15', '-', '-'], ['1332813054', '1934805000', '0.22418952041370246', '5', '-', '-'], ['1332813054', '3576906000', '0.18632960676890087', '2', '-', '-'], ['1332813054', '2017334000', '0.17514400295300123', '7', '-', '-'], ['1332813054', '1540165000', '0.16258983698863705', '3', '-', '-'], ['1332813054', '7085389000', '0.12629414968332103', '7', 'AVTO HIŠA RANDELJ, uvoz, prodaja in odkup vozil, d.o.o.', '-'], ['1332813054', '6322441000', '0.09369914931306515', '2', '-', '-'], ['1332813054', '5436362000', '0.08234816704866431', '15', '-', '-'], ['1332813054', '3311732000', '0.07893893765617992', '3', '-', '-'], ['1332813054', '1662856000', '0.07029025941024064', '4', 'PAPIGAL, JAKOPIN, čiščenje okolja in ravnanje z odplakami, d.o.o.', '-'], ['1332813054', '6301509000', '0.061649098765205884', '13', 'ACOLAV, podjetje za storitve, d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['1332813054', '5488338000', '0.3175510756740975', '25', '-', '-'], ['1332813054', '3525074000', '0.07800894084535114', '25', '-', '-'], ['1332813054', '5373298000', '0.0770797683940451', '25', 'AVTOHIŠA MALGAJ trgovsko - servisno podjetje, d.o.o.', '-'], ['1332813054', '1934805000', '0.06939279235640315', '25', '-', '-'], ['1332813054', '5436362000', '0.057577124292044035', '25', '-', '-']]}, 'dependency-mutual': {'buyers': [['1332813054', '5488338000', '0.13183678502615784', '6', '-', '-'], ['1332813054', '3525074000', '0.06458504039404701', '5', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'225681': ['3918', '0.7173726703209728', '1332813054', '6144861000', '38729.51', '18910.5', '51000000', '225681', '-', '-'], '244896': ['4225', '0.6879518901978806', '1332813054', '3311732000', '42000.0', '21120.0', '39370000', '244896', '-', '-'], '344699': ['2736', '0.8935479225633594', '1332813054', '3154505000', '51265.5', '20986.5', '50000000', '344699', '-', '-'], '362014': ['1275', '1.3627506614826517', '1332813054', '8477027000', '31203.03', '7988.64', '51100000', '362014', '-', '-']}}, 'ratio-rev-per-employee-pos': {'buyers': {'250799': ['9022', '10.59413162794061', '1332813054', '5898692006', '39900.0', '1', '50112111', '250799', '-', '-'], '300801': ['5054', '11.308112882613692', '1332813054', '8335729000', '81480.0', '1.0', '45440000', '300801', '-', '-'], '401003': ['4872', '11.35040654723716', '1332813054', '5373298001', '85000.0', '1', '50111000', '401003', '-', 'AVTOHIŠA MALGAJ TRGOVSKO - SERVISNO PODJETJE, D.O.O.']}}}, '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>