--> -->
 
 
UnboundLocalError
Python 3.7.4: /usr/local/bin/python3
Thu Apr 24 14:36:05 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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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': {'bidders': [['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-']], 'buyers': [['5067804000', '5779944000', '0.9442034510845961', '3', '-', '-'], ['5067804000', '5846625000', '0.6564235209848851', '3', '-', '-'], ['5067804000', '5948851000', '0.6485219174477698', '3', '-', '-'], ['5067804000', '5406331000', '0.6404412263319295', '2', '-', '-'], ['5067804000', '1589334000', '0.6286126025916978', '2', '-', '-'], ['5067804000', '1785052000', '0.5293446739707582', '2', '-', '-'], ['5067804000', '2156890000', '0.4474070861154477', '3', '-', '-'], ['5067804000', '5588120000', '0.3719036198100101', '3', '-', '-'], ['5067804000', '1518593000', '0.3621644084475466', '2', '-', '-'], ['5067804000', '5346690000', '0.3362873872448172', '2', '-', '-'], ['5067804000', '5067804000', '0.19878956643215995', '2', '-', '-'], ['5067804000', 't351', '0.121373843211053', '7', 'Pag 91 d.o.o.', '-'], ['5067804000', '2529157000', '0.06740599828379028', '2', 'IZTOK BAUER - NOSILEC DOPOLNILNE DEJAVNOSTI NA KMETIJI', '-'], ['5067804000', '5054674000', '0.054357253965864535', '2', '-', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5067804000', '5069149000', '0.24368822169175502', '53', 'CGP, družba za gradbeništvo, inženiring, proizvodnjo in vzdrževanje cest, d.d.', '-'], ['5067804000', '5156572000', '0.12752828734572172', '53', 'Kostak, komunalno in gradbeno podjetje, d.d.', '-'], ['5067804000', '5025796000', '0.07146516190809053', '53', 'PETROL, Slovenska energetska družba, d.d., Ljubljana', '-'], ['5067804000', '8469539000', '0.05199596399404284', '53', '-', '-'], ['5067804000', '5588120000', '0.050404166980324065', '53', '-', '-']]}, 'dependency-mutual': {'buyers': [['5067804000', '8469539000', '0.05199596399404284', '1', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'402477': ['3028', '-0.3073486992045322', '5067804000', '1785052000', '6000.0', '8170.0', '90500000', '402477', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'bidders': {'315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-']}, 'buyers': {'402477': ['3426', '0.779163963613315', '5067804000', '3451747000', '5000.0', '2295.0', '90500000', '402477', '-', 'KOMTEKS, zbiranje in odkup sekundarnih surovin, d.o.o.']}}, 'ratio-rev-per-employee-neg': {'buyers': {'405835': ['1133', '-0.22522905780523111', '5067804000', '5432391000', '179.4', '225', '90510000', '405835', '-', 'SAUBERMACHER SLOVENIJA storitve pri varstvu okolja, trgovina in transport d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'205135': ['7391', '10.862218827573711', '5067804000', 't351', '52167.7', '1', '14420000', '205135', '-', 'Pag 91 d.o.o.'], '326326': ['4959', '11.332601922814995', '5067804000', '6882331000', '167000.0', '2', '34144511', '326326', '-', 'JUST KOM podjetje za prodajo in servis komunalne opreme d.o.o.'], '354337': ['2007', '12.25486281446151', '5067804000', '8469539000', '210000.0', '1', '9323000', '354337', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 7, '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>