--> -->
 
 
UnboundLocalError
Python 3.7.4: /usr/local/bin/python3
Thu Apr 24 22:22:54 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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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': [['2399245000', '3706338000', '0.9321092096653727', '2', '-', '-'], ['2399245000', '8297975000', '0.9283466856942049', '2', '-', '-'], ['2399245000', '5067804000', '0.80121043356784', '2', '-', '-'], ['2399245000', '7185081000', '0.5387635161505084', '2', '-', '-'], ['2399245000', '5970270000', '0.34032740163535635', '3', '-', '-'], ['2399245000', '2298716000', '0.12460580941573778', '13', '-', '-'], ['2399245000', '6015379000', '0.08154067304010496', '8', 'Center poslovne odličnosti Ekonomske fakultete Univerze v Ljubljani', '-'], ['2399245000', '3527816000', '0.07618342685371828', '4', '-', '-'], ['2399245000', '1868942000', '0.07034068626623781', '9', '-', '-'], ['2399245000', '5488745000', '0.06463716892050063', '5', 'SLOVENSKA TISKOVNA AGENCIJA d.o.o., Ljubljana', '-']]}, 'dependency-buyer2bidder': {'buyers': [['2399245000', '5909368000', '0.3008382264097834', '27', 'RIKO, industrijski, gradbeni inženiring in leasing d.o.o.', '-'], ['2399245000', '1009214000', '0.3008382264097834', '27', '-', '-'], ['2399245000', '3706338000', '0.09494793328964149', '27', '-', '-'], ['2399245000', '2298716000', '0.0709526989731771', '27', '-', '-']]}, 'dependency-mutual': {'buyers': [['2399245000', '1009214000', '0.3008382264097834', '1', '-', '-'], ['2399245000', '3706338000', '0.08850184305796827', '4', '-', '-']]}, 'ratio-assessed-final-bdg-pos': {'buyers': {'223582': ['4547', '0.6560065978740702', '2399245000', '2298716000', '57377.0', '29789.5', '98371111', '223582', '-', '-'], '315444': ['4013', '0.7070772977149689', '2399245000', '5067804000', '250000.0', '123331.62', '45112000', '315444', '-', '-'], '416503': ['3674', '0.744215608421136', '2399245000', '8297975000', '245901.64', '116885.08', '71351914', '416503', '-', '-']}}, 'ratio-rev-per-employee-neg': {'buyers': {'409109': ['4303', '-0.8954037254093785', '2399245000', '5143373000', '305.582', '750', '63000000', '409109', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'186664': ['5777', '11.163368002984758', '2399245000', '3706338000', '141000.0', '2', '98371111', '186664', '-', '-'], '223582': ['5628', '11.186217021012938', '2399245000', '3706338000', '144258.8', '2', '98371111', '223582', '-', '-'], '277565': ['9261', '10.561266615158308', '2399245000', '3706338000', '77220.0', '2', '98371111', '277565', '-', '-'], '327914': ['358', '14.018451402777291', '2399245000', '1009214000', '1225000.0', '1.0', '45220000', '327914', '-', '-'], '416503': ['3667', '11.668946517416733', '2399245000', '8297975000', '116885.08', '1', '71351914', '416503', '-', '-'], '424933': ['5248', '11.268111305519463', '2399245000', 't1613', '78285.0', '1', '73200000', '424933', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, '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>